File tree Expand file tree Collapse file tree
packages/dashboard-core-plugins/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments