diff --git a/ts/types/attachments/migrations.ts b/ts/types/attachments/migrations.ts index 6c206c016..ed6406b98 100644 --- a/ts/types/attachments/migrations.ts +++ b/ts/types/attachments/migrations.ts @@ -173,7 +173,7 @@ export const deleteData = async (attachment: { path: string; thumbnail: any; scr const { path, thumbnail, screenshot } = attachment; - if (isString(path)) { + if (path && isString(path)) { attachment.path = String(await handleDiskDeletion(path)); }