Fix issue with <StarredToggleButton /> (#10128)

- Prevent rendering if no instance provided
This commit is contained in:
Oliver 2025-08-05 11:11:31 +10:00 committed by GitHub
parent 120a7ebdf9
commit fbb7707076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ export default function StarredToggleButton({
});
}
if (!instance || !instance.pk) {
return <></>;
}
return (
<ActionButton
icon={<IconBell />}