mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 09:01:10 +02:00
chore (client): fix type errors
This commit is contained in:
parent
fbdc068115
commit
9a4988eaad
|
@ -1046,14 +1046,14 @@ function openFileDescriptionWindow(file: entities.DriveFile) {
|
|||
resolve(false);
|
||||
return;
|
||||
}
|
||||
const comment = result.result.length === 0 ? null : result.result;
|
||||
const comment = result.result?.length === 0 ? null : result.result;
|
||||
os.api("drive/files/update", {
|
||||
fileId: file.id,
|
||||
comment,
|
||||
})
|
||||
.then(() => {
|
||||
resolve(true);
|
||||
file.comment = comment;
|
||||
file.comment = comment ?? null;
|
||||
})
|
||||
.catch((err: unknown) => {
|
||||
reject(err);
|
||||
|
|
Loading…
Reference in a new issue