diff --git a/src/backend/src/filesystem/ll_operations/ll_write.js b/src/backend/src/filesystem/ll_operations/ll_write.js index 15fd24968..bfeaf96fc 100644 --- a/src/backend/src/filesystem/ll_operations/ll_write.js +++ b/src/backend/src/filesystem/ll_operations/ll_write.js @@ -189,8 +189,10 @@ class LLOWrite extends LLWriteBase { } }); - fsentry_tmp.thumbnail = await fsentry_tmp.thumbnail_promise; - delete fsentry_tmp.thumbnail_promise; + if ( fsentry_tmp?.thumbnail_promise ) { + fsentry_tmp.thumbnail = await fsentry_tmp.thumbnail_promise; + delete fsentry_tmp.thumbnail_promise; + } const ts = Math.round(Date.now() / 1000); const raw_fsentry_delta = {