mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 16:40:41 +00:00
fix: issue using ll_write outside of hl_write
Using LLOWrite outside of HLWrite, which is useful inside a Puter extension when a simple write operation is being invoked by the backend, required passing a thumbnail. However, sometimes this is not necessary. This commit makes it possible run an LLOWrite operation without passing a thumbnail stream.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user