Fix bug where stale data is shown in custom css drawer when changing components

This commit is contained in:
Andrew Kingston 2021-06-30 09:38:14 +01:00
parent c936ab2619
commit 48fdc8a2df
1 changed files with 13 additions and 11 deletions

View File

@ -35,6 +35,7 @@
<ActionButton on:click={openDrawer}>Edit custom CSS</ActionButton> <ActionButton on:click={openDrawer}>Edit custom CSS</ActionButton>
</div> </div>
</DetailSummary> </DetailSummary>
{#key componentInstance?._id}
<Drawer bind:this={drawer} title="Custom CSS"> <Drawer bind:this={drawer} title="Custom CSS">
<Button cta slot="buttons" on:click={save}>Save</Button> <Button cta slot="buttons" on:click={save}>Save</Button>
<DrawerContent slot="body"> <DrawerContent slot="body">
@ -46,6 +47,7 @@
</div> </div>
</DrawerContent> </DrawerContent>
</Drawer> </Drawer>
{/key}
<style> <style>
.content { .content {