Skip to content

Commit b5f0199

Browse files
committed
Remove outdated comment
1 parent 769fac0 commit b5f0199

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/dashboard-core-plugins/src/ConsolePlugin.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,6 @@ export function ConsolePlugin(
278278

279279
const unregisterFilePanel = useCallback(
280280
(fileMetadata: FileMetadata, isPreview: boolean) => {
281-
// Note: unregister event is triggered AFTER new register when switching from preview to edit mode
282-
// due to the LayoutUtils implementation (new tab added before deleting the old one)
283-
// This doesn't cause any issues because previews and editable files are stored in different maps,
284-
// but this situation could be completely avoided by sending an event to the tab
285-
// to make it switch from preview to edit mode without re-mounting and re-registering
286281
log.debug('unregisterFileTab', fileMetadata, isPreview);
287282
if (fileMetadata == null || fileMetadata.id == null) {
288283
log.debug('Ignore empty file id', fileMetadata);

0 commit comments

Comments
 (0)