@lvce-editor/status-bar-worker 3.31.1 → 3.31.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.
|
@@ -1840,9 +1840,7 @@ const handleClickNotification = async () => {
|
|
|
1840
1840
|
|
|
1841
1841
|
const handleClickProblems = async () => {
|
|
1842
1842
|
// @ts-ignore
|
|
1843
|
-
await invoke$1('Layout.showPanel');
|
|
1844
|
-
// @ts-ignore
|
|
1845
|
-
await invoke$1('Panel.toggleView', 'Problems');
|
|
1843
|
+
await invoke$1('Layout.showPanel', 'Problems');
|
|
1846
1844
|
};
|
|
1847
1845
|
|
|
1848
1846
|
const handleClick = async (state, name) => {
|
|
@@ -2516,9 +2514,11 @@ const getIndex = (items, item) => {
|
|
|
2516
2514
|
|
|
2517
2515
|
const updateArray = (items, newItem) => {
|
|
2518
2516
|
const index = getIndex(items, newItem);
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2517
|
+
if (index < 0) {
|
|
2518
|
+
return [newItem, ...items];
|
|
2519
|
+
}
|
|
2520
|
+
// eslint-disable-next-line unicorn/no-confusing-array-splice -- Keep updates immutable with toSpliced.
|
|
2521
|
+
return items.toSpliced(index, 1, newItem);
|
|
2522
2522
|
};
|
|
2523
2523
|
|
|
2524
2524
|
const itemLeftUpdate = (state, newItem) => {
|