Skip to content

Commit 4d24a45

Browse files
committed
fix: unsaved changes popup showing after saving manifest
1 parent 5196e93 commit 4d24a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/Manifest.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ const ManifestComponent = ({
689689
handleStickDynamicTabsToTop?.()
690690
}
691691

692-
const hasUnsavedChanges = previousEditorState.current !== getCodeEditorValue()
692+
const hasUnsavedChanges = isEditMode && previousEditorState.current !== getCodeEditorValue()
693693

694694
usePrompt({ shouldPrompt: hasUnsavedChanges })
695695

0 commit comments

Comments
 (0)