File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ const createWorkspaceSyncController = ({
4444 return false
4545 }
4646
47- const removedPath =
48- getTabTargetPrFilePath ( tab ) || normalizeWorkspacePathValue ( tab ?. path ) || ''
47+ const removedPath = normalizeWorkspacePathValue (
48+ getTabTargetPrFilePath ( tab ) || tab ?. path ,
49+ )
4950 if ( ! removedPath ) {
5051 return false
5152 }
Original file line number Diff line number Diff line change @@ -215,14 +215,15 @@ const createWorkspaceTabMutationsController = ({
215215 onConfirm : ( ) => {
216216 const removedKind = isStyleWorkspaceTab ( tab ) ? 'styles' : 'component'
217217 persistActiveTabEditorContent ( )
218- if ( typeof trackRemovedWorkspaceTab === 'function' ) {
219- trackRemovedWorkspaceTab ( tab )
220- }
221218 const removed = workspaceTabsState . removeTab ( tab . id )
222219 if ( ! removed ) {
223220 return
224221 }
225222
223+ if ( typeof trackRemovedWorkspaceTab === 'function' ) {
224+ trackRemovedWorkspaceTab ( tab )
225+ }
226+
226227 if ( typeof clearTrackedWorkspaceTab === 'function' ) {
227228 clearTrackedWorkspaceTab ( tab . id )
228229 }
You can’t perform that action at this time.
0 commit comments