fix: initTab vor setActive setzen, keine Auto-Quittierung beim Badge-Klick
This commit is contained in:
@@ -44,7 +44,10 @@ export default function Media({ toast, mobile, initTab, onInitTabConsumed }) {
|
||||
|
||||
// Wenn von außen ein Tab vorgegeben wird (z.B. Dashboard-Badge)
|
||||
useEffect(() => {
|
||||
if (initTab) { setActiveTool(initTab); onInitTabConsumed?.(); }
|
||||
if (initTab) {
|
||||
setActiveTool(initTab);
|
||||
onInitTabConsumed?.();
|
||||
}
|
||||
}, [initTab]);
|
||||
const [modal, setModal] = useState(null); // { id, media_type }
|
||||
const [xrelIds, setXrelIds] = useState(new Set()); // tmdb_ids mit bekannten Releases
|
||||
|
||||
Reference in New Issue
Block a user