diff --git a/src/server/api/endpoints/drive/files/update.ts b/src/server/api/endpoints/drive/files/update.ts index bac04bae78..9ae2719aa7 100644 --- a/src/server/api/endpoints/drive/files/update.ts +++ b/src/server/api/endpoints/drive/files/update.ts @@ -64,7 +64,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = if (ps.name) file.filename = ps.name; - if (ps.isSensitive) file.metadata.isSensitive = ps.isSensitive; + if (ps.isSensitive !== undefined) file.metadata.isSensitive = ps.isSensitive; if (ps.folderId !== undefined) { if (ps.folderId === null) {