Fix issue with <StarredToggleButton /> (#10128)
- Prevent rendering if no instance provided
This commit is contained in:
parent
120a7ebdf9
commit
fbb7707076
|
|
@ -51,6 +51,10 @@ export default function StarredToggleButton({
|
|||
});
|
||||
}
|
||||
|
||||
if (!instance || !instance.pk) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<ActionButton
|
||||
icon={<IconBell />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue