diff --git a/web/src/components/DeploymentDisplay.tsx b/web/src/components/DeploymentDisplay.tsx index 257545f..08afc39 100644 --- a/web/src/components/DeploymentDisplay.tsx +++ b/web/src/components/DeploymentDisplay.tsx @@ -118,15 +118,12 @@ export function DeploymentDisplay({
- Copy and paste the ComfyDeployClient form  - - here - + Install the node comfydeploy SDK + + Initialize your client
0) { codeTemplate = codeTemplate.replace( "inputs: {}", - `inputs: ${JSON.stringify( - Object.fromEntries( - inputs.map((x) => { - return [x?.input_id, ""]; - }), - ), - null, - 2, - ) - .split("\n") - .map((line, index) => (index === 0 ? line : ` ${line}`)) // Add two spaces indentation except for the first line - .join("\n")}`, + `inputs: ${ + JSON.stringify( + Object.fromEntries( + inputs.map((x) => { + return [x?.input_id, ""]; + }), + ), + null, + 2, + ) + .split("\n") + .map((line, index) => (index === 0 ? line : ` ${line}`)) // Add two spaces indentation except for the first line + .join("\n") + }`, ); } else { codeTemplate = codeTemplate.replace(