From 4ab93123921fb3449d5784e8e76c9953416ceb09 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Tue, 4 Oct 2022 13:04:07 -0400 Subject: [PATCH] client: fix post-form.vue This fixes an issue where the post form hangs after posting. --- packages/client/src/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index 8f1b78211..bea0b7ff9 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -523,7 +523,7 @@ function saveDraft() { && (!useCw || initialDraftData.cw === cw) && initialDraftData.visibility === visibility && initialDraftData.localOnly === localOnly - && initialDraftData.files.each((file, i) => file.id === files[i].id) + && initialDraftData.files.every((file, i) => file.id === files[i].id) // initial state is always poll == null && poll == null ) {