Fix: uploading a delayed image should now report the correct theme

This commit is contained in:
Pieter Vander Vennet 2025-05-06 02:18:09 +02:00
parent 3f2e48e4aa
commit 3c7441d93b

View file

@ -143,8 +143,6 @@ export class ImageUploadManager {
noblur, noblur,
targetKey, targetKey,
} }
console.log("Args are", args)
this._queue.add(args) this._queue.add(args)
this.uploadQueue() this.uploadQueue()
} }
@ -243,7 +241,7 @@ export class ImageUploadManager {
result.value, result.value,
properties, properties,
{ {
theme: properties?.data?.["_orig_theme"] ?? this._theme.id, theme: args.layoutId ?? properties?.data?.["_orig_theme"] ?? this._theme.id,
changeType: "add-image", changeType: "add-image",
} }
) )