🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Don't explode when `record` is not loaded yet
Deluan7becc18da9e7
diff --git a/ui/src/common/useToggleStar.js b/ui/src/common/useToggleStar.jsindex fbf608a7a..b008f5672 100644--- a/ui/src/common/useToggleStar.js+++ b/ui/src/common/useToggleStar.js@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { useDataProvider, useNotify } from 'react-admin'import subsonic from '../subsonic'-export const useToggleStar = (resource, record) => {+export const useToggleStar = (resource, record = {}) => {const [loading, setLoading] = useState(false)const notify = useNotify()