Load Featured Studios from localStorage in Admin panel
cgen-e64ea4456a764e8abd555c00471ba89c
This commit is contained in:
parent
dd7429f6fe
commit
e2b7a320eb
1 changed files with 7 additions and 0 deletions
|
|
@ -42,6 +42,13 @@ export default function Admin() {
|
|||
} catch {
|
||||
setDemoProfiles([]);
|
||||
}
|
||||
try {
|
||||
const raw = localStorage.getItem("featured_studios");
|
||||
if (raw) {
|
||||
const parsed = JSON.parse(raw);
|
||||
if (Array.isArray(parsed) && parsed.length) setStudios(parsed);
|
||||
}
|
||||
} catch {}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue