Skip to content

AI-native design editor. Open-source Figma alternative.

fix(clipboard): report image fetch attempts accurately

Danila Poyarkov15ea98d8fb4f
diff --git a/packages/core/src/editor/clipboard.ts b/packages/core/src/editor/clipboard.ts
index 73987be6d..dd010ae23 100644
--- a/packages/core/src/editor/clipboard.ts
+++ b/packages/core/src/editor/clipboard.ts
@@ -206,7 +206,7 @@ export function createClipboardActions(ctx: EditorContext) {
ctx.emitEditorEvent('clipboard:images-missing', {
total: hashes.length,
missing,
- fetchAttempted: resolver !== null
+ fetchAttempted: Boolean(resolver)
})
}
}