From da281a170b29a50621d9251869cc68156cdf3d9f Mon Sep 17 00:00:00 2001 From: dank074 Date: Tue, 15 Nov 2022 22:39:27 -0600 Subject: [PATCH] fix jukebox on null playlist --- .../widgets/furniture/playlist-editor/DiskInventoryView.tsx | 6 +++--- .../widgets/furniture/playlist-editor/SongPlaylistView.tsx | 2 +- .../widgets/furniture/useFurniturePlaylistEditorWidget.ts | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/room/widgets/furniture/playlist-editor/DiskInventoryView.tsx b/src/components/room/widgets/furniture/playlist-editor/DiskInventoryView.tsx index d354c06c..407fdce2 100644 --- a/src/components/room/widgets/furniture/playlist-editor/DiskInventoryView.tsx +++ b/src/components/room/widgets/furniture/playlist-editor/DiskInventoryView.tsx @@ -57,13 +57,13 @@ export const DiskInventoryView: FC = props => { const diskId = diskInventory.getKey(index); const songId = diskInventory.getWithIndex(index); - const songData = GetNitroInstance().soundManager.musicController?.getSongInfo(songId); + const songInfo = GetNitroInstance().soundManager.musicController?.getSongInfo(songId); return ( setSelectedItem(prev => prev === index ? -1 : index) } classNames={ [ 'text-black' ] }> -
+
- { songData?.name } + { songInfo?.name } { (selectedItem === index) &&