fix: randomize-compose missing await

This commit is contained in:
Khiet Tam Nguyen
2025-05-18 18:26:44 +10:00
parent 0f48f2c830
commit 616e11722c

View File

@@ -77,8 +77,8 @@ export const RandomizeCompose = ({ composeId }: Props) => {
randomize: formData?.randomize || false,
})
.then(async (_data) => {
randomizeCompose();
refetch();
await randomizeCompose();
await refetch();
toast.success("Compose updated");
})
.catch(() => {