@lvce-editor/activity-bar-worker 5.6.0 → 5.7.0
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.
|
@@ -2902,7 +2902,9 @@ const setUserLoginState = (state, userLoginState) => {
|
|
|
2902
2902
|
|
|
2903
2903
|
const toggleActivityBarItem = async (state, itemId) => {
|
|
2904
2904
|
const {
|
|
2905
|
-
activityBarItems
|
|
2905
|
+
activityBarItems,
|
|
2906
|
+
height,
|
|
2907
|
+
itemHeight
|
|
2906
2908
|
} = state;
|
|
2907
2909
|
const updatedItems = activityBarItems.map(item => {
|
|
2908
2910
|
if (item.id === itemId) {
|
|
@@ -2914,9 +2916,11 @@ const toggleActivityBarItem = async (state, itemId) => {
|
|
|
2914
2916
|
}
|
|
2915
2917
|
return item;
|
|
2916
2918
|
});
|
|
2919
|
+
const filteredItems = getFilteredActivityBarItems(updatedItems, height, itemHeight);
|
|
2917
2920
|
return {
|
|
2918
2921
|
...state,
|
|
2919
|
-
activityBarItems: updatedItems
|
|
2922
|
+
activityBarItems: updatedItems,
|
|
2923
|
+
filteredItems
|
|
2920
2924
|
};
|
|
2921
2925
|
};
|
|
2922
2926
|
|