@lvce-editor/main-area-worker 9.71.1 → 9.71.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6908,7 +6908,7 @@ const moveTabToGroup = (state, sourceGroupId, targetGroupId, tabId, targetIndex)
|
|
|
6908
6908
|
}
|
|
6909
6909
|
return group;
|
|
6910
6910
|
});
|
|
6911
|
-
|
|
6911
|
+
const nextState = {
|
|
6912
6912
|
...state,
|
|
6913
6913
|
layout: {
|
|
6914
6914
|
...layout,
|
|
@@ -6916,6 +6916,11 @@ const moveTabToGroup = (state, sourceGroupId, targetGroupId, tabId, targetIndex)
|
|
|
6916
6916
|
groups: updatedGroups
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
+
const updatedSourceGroup = updatedGroups.find(group => group.id === sourceGroupId);
|
|
6920
|
+
if (updatedSourceGroup?.tabs.length === 0) {
|
|
6921
|
+
return closeEditorGroup$1(nextState, sourceGroupId);
|
|
6922
|
+
}
|
|
6923
|
+
return nextState;
|
|
6919
6924
|
};
|
|
6920
6925
|
|
|
6921
6926
|
const getOpenTabCount = state => {
|