Merge pull request #1919 from nktnet1/fix-randomise-compose-await

fix: randomize-compose missing await
This commit is contained in:
Mauricio Siu 2025-05-18 02:29:32 -06:00 committed by GitHub
commit e2c163c6d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(() => {