always pass type for builder config

This commit is contained in:
karamvir
2023-08-06 21:19:44 -07:00
parent d3e2ee2974
commit 939f3db719

View File

@@ -98,7 +98,15 @@ const BuilderConfig = ({ id }: { id: string }) => {
</Button>
<ConfirmUpdate
content={JSON.stringify(update, null, 2)}
onConfirm={() => mutate({ config: update as any, id })}
onConfirm={() => {
mutate({
id,
config: {
type: builder.config.type,
...update,
} as any,
});
}}
/>
</div>
}