mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-08 04:40:57 +00:00
Fix issue with <StarredToggleButton /> (#10128)
- Prevent rendering if no instance provided
This commit is contained in:
@@ -51,6 +51,10 @@ export default function StarredToggleButton({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!instance || !instance.pk) {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
icon={<IconBell />}
|
icon={<IconBell />}
|
||||||
|
Reference in New Issue
Block a user