mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-07 04:12:36 +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:
1 parent
914b077e1a
commit
152a5578fc
1 file changed
+4
-2
@@ -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