mirror of
https://github.com/stashapp/stash.git
synced 2026-02-09 17:01:34 +01:00
Add key prop to StudioEditPanel to force remount
This fixes an issue where newly added Stash IDs wouldn't appear in the component until the page was refreshed, by forcing a remount when the studio data changes.
This commit is contained in:
parent
3e5ac408fa
commit
7a9510a73d
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
|||
)}
|
||||
{isEditing ? (
|
||||
<StudioEditPanel
|
||||
key={studio.id}
|
||||
studio={studio}
|
||||
onSubmit={onSave}
|
||||
onCancel={() => toggleEditing()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue