mirror of
https://github.com/tomru/advcal.git
synced 2026-03-03 06:27:17 +01:00
simplify debug
This commit is contained in:
@@ -6,7 +6,7 @@ const AppProvider = ({ debug = false, children }) => {
|
|||||||
const [songs, setSongs] = useState(null);
|
const [songs, setSongs] = useState(null);
|
||||||
const [openSong, setOpenSong] = useState(null);
|
const [openSong, setOpenSong] = useState(null);
|
||||||
|
|
||||||
const URL = debug ? "/api/songs?unlock=true" : "/api/songs";
|
const URL = `/api/songs?unlock=${debug}`
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getSongs() {
|
async function getSongs() {
|
||||||
|
|||||||
Reference in New Issue
Block a user