Skip to content

Commit f551f5e

Browse files
committed
added whitespace trimming before hasChanges check
1 parent 609a8a5 commit f551f5e

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general/components

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general/components/api-info-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function ApiInfoModal({ open, onOpenChange, workflowId }: ApiInfoModalPro
9696
}, [open, workflowMetadata, inputFormat])
9797

9898
const hasChanges = useMemo(() => {
99-
if (description !== initialDescriptionRef.current) return true
99+
if (description.trim() !== initialDescriptionRef.current.trim()) return true
100100

101101
for (const field of inputFormat) {
102102
const currentValue = (paramDescriptions[field.name] || '').trim()

0 commit comments

Comments
 (0)