diff options
| author | nullobsi <me@nullob.si> | 2022-01-21 00:43:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-21 17:43:51 +0900 |
| commit | 76db7ba7816fdcdba03314c062c9319f02118784 (patch) | |
| tree | c9e22b31c99782435e1cc983e7843675349766a2 | |
| parent | fix(#8133): hCaptcha の reCAPTCHA 互換挙動を無効化する (#8135) (diff) | |
| download | sharkey-76db7ba7816fdcdba03314c062c9319f02118784.tar.gz sharkey-76db7ba7816fdcdba03314c062c9319f02118784.tar.bz2 sharkey-76db7ba7816fdcdba03314c062c9319f02118784.zip | |
update local copy of file when describing (#8131)
| -rw-r--r-- | packages/client/src/components/post-form-attaches.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/client/src/components/post-form-attaches.vue b/packages/client/src/components/post-form-attaches.vue index 0782ce22e5..4555fc1a2d 100644 --- a/packages/client/src/components/post-form-attaches.vue +++ b/packages/client/src/components/post-form-attaches.vue @@ -99,10 +99,12 @@ export default defineComponent({ }, { done: result => { if (!result || result.canceled) return; - let comment = result.result; + let comment = result.result.length == 0 ? null : result.result; os.api('drive/files/update', { fileId: file.id, - comment: comment.length == 0 ? null : comment + comment: comment, + }).then(() => { + file.comment = comment; }); } }, 'closed'); |