Skip to content

Commit abfb001

Browse files
committed
fixup: add react hook dep
1 parent b8dc7b8 commit abfb001

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/compass-schema/src/components/export-schema-legacy-modal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,12 @@ const ExportSchemaLegacyModal: React.FunctionComponent<{
483483
if (dontShowAgainChecked) stopShowingLegacyModal('legacy');
484484
onLegacyShare();
485485
setShowLegacyExportTooltip(true);
486-
}, [onLegacyShare, dontShowAgainChecked, stopShowingLegacyModal]);
486+
}, [
487+
onLegacyShare,
488+
dontShowAgainChecked,
489+
stopShowingLegacyModal,
490+
setShowLegacyExportTooltip,
491+
]);
487492
const handleSwitchToNew = useCallback(() => {
488493
if (dontShowAgainChecked) stopShowingLegacyModal('export');
489494
onSwitchToSchemaExport();

0 commit comments

Comments
 (0)