fix(autosave): server isn't guaranteed to exist

This commit is contained in:
Kendall Garner
2026-03-06 20:52:41 -08:00
parent 7c4cbaad9a
commit 7027084394
@@ -25,7 +25,7 @@ export const useAutosave = () => {
priorSongId.current = currentSong?._uniqueId; priorSongId.current = currentSong?._uniqueId;
} }
} }
}, [enabled, count, currentSong?._uniqueId, savePlayQueue, server.type]); }, [enabled, count, currentSong?._uniqueId, savePlayQueue, server?.type]);
}; };
export const AutosaveHook = () => { export const AutosaveHook = () => {