alexandrusoare commented on code in PR #37714:
URL: https://github.com/apache/superset/pull/37714#discussion_r2773225136


##########
superset-frontend/src/explore/components/ExploreChartHeader/index.jsx:
##########
@@ -210,14 +220,16 @@ export const ExploreChartHeader = ({
     [originalFormData, currentFormData],
   );
 
+  const hasUnsavedChanges = Object.keys(formDiffs).length > 0;
+
   const {
     showModal: showUnsavedChangesModal,
     setShowModal: setShowUnsavedChangesModal,
     handleConfirmNavigation,
     handleSaveAndCloseModal,
     triggerManualSave,
   } = useUnsavedChangesPrompt({
-    hasUnsavedChanges: Object.keys(formDiffs).length > 0,

Review Comment:
   I think we can restore this if there s no actual need for that variable 
other than this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to