Skip to content

Commit

Permalink
feat(json-crdt-extensions): 🎸 use undefined as data if no slice data …
Browse files Browse the repository at this point in the history
…specified
  • Loading branch information
streamich committed Jun 8, 2024
1 parent 2f960db commit e5c4992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-crdt-extensions/peritext/block/Inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Inline extends Range implements Printable {
break;
}
case SliceBehavior.Stack: {
this.stackAttr(attr, type, slice.data() ?? 1, slice);
this.stackAttr(attr, type, slice.data(), slice);
break;
}
case SliceBehavior.Overwrite: {
Expand Down

0 comments on commit e5c4992

Please sign in to comment.