mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[bugfix] fix potential issue when adding a map to a playlist
This commit is contained in:
+1
-1
@@ -303,7 +303,7 @@ export const EditPlaylistModal: ModalComponent<BPList, Props> = ({ resolver, opt
|
||||
availabledHashsSelected$.value.map(hash => tmpLocalMaps.find(map => getHashOfMap(map) === hash)).filter(Boolean)
|
||||
) : tmpLocalMaps;
|
||||
|
||||
const newPlaylistMaps = {...playlistMaps$.value} ?? {};
|
||||
const newPlaylistMaps = {...playlistMaps$.value ?? {}};
|
||||
mapsToAdd.forEach(map =>{ newPlaylistMaps[getHashOfMap(map)] = { map }; });
|
||||
|
||||
playlistMaps$.next(newPlaylistMaps);
|
||||
|
||||
Reference in New Issue
Block a user