Skip to content
Snippets Groups Projects
Unverified Commit 76db7ba7 authored by nullobsi's avatar nullobsi Committed by GitHub
Browse files

update local copy of file when describing (#8131)

parent 9a4267f0
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment