Skip to content

Commit

Permalink
Fixed error when saving an image without src
Browse files Browse the repository at this point in the history
  • Loading branch information
sagzy committed Jun 11, 2024
1 parent 61897e5 commit 38572fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kg-default-nodes/lib/nodes/image/ImageNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ImageNode extends generateDecoratorNode({nodeType: 'image',
exportJSON() {
// checks if src is a data string
const {src, width, height, title, alt, caption, cardWidth, href} = this;
const isBlob = src.startsWith('data:');
const isBlob = src && src.startsWith('data:');

const dataset = {
type: 'image',
Expand Down

0 comments on commit 38572fd

Please sign in to comment.