Skip to content

Commit

Permalink
Fixed doc notebook tag
Browse files Browse the repository at this point in the history
  • Loading branch information
OAGr committed Jan 7, 2024
1 parent b85d61d commit 433d889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/squiggle-lang/src/public/SqValue/SqTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export class SqTags {

doc(): SqArrayValue | undefined {
const doc = this.tags.doc();
return doc ? new SqArrayValue(vArray(doc), this.context) : undefined;
const arr = doc ? new SqArrayValue(vArray(doc), this.context) : undefined;
if (arr) {
arr._value = arr._value.mergeTags({ notebook: true });
}
return arr || undefined;
}

showAs(): SqValue | undefined {
Expand Down

0 comments on commit 433d889

Please sign in to comment.