Skip to content

Commit

Permalink
[feat-75] added fix on rebasing 1
Browse files Browse the repository at this point in the history
  • Loading branch information
silentrald committed Oct 8, 2024
1 parent 7e851c5 commit 2b07f7a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,12 @@ export const LocalMapsListPanel = forwardRef<LocalMapsListPanelRef, Props>(({ ve
return;
}

const mapsCopy = maps ? [ ...maps ] : [];
if (!maps$.value) {
setMaps(importMaps);
return;
}

const mapsCopy = [ ...maps$.value ];
for (const importMap of importMaps) {
const index = mapsCopy.findIndex(map => map.hash === importMap.hash);
if (index > -1) {
Expand Down

0 comments on commit 2b07f7a

Please sign in to comment.