Skip to content

Commit

Permalink
fix rendering of None
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsonder committed Jun 6, 2024
1 parent 636e261 commit 727f9a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### 🐛 Bug fixes

- Fixed a bug where box fill colours would cover box text, and changed the implementation of `hide` style option.
- Removed double quotes when rendering objects of type `None`.

### 📚 Documentation and demo website changes

Expand Down
2 changes: 2 additions & 0 deletions memory-viz/src/memory_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ export class MemoryModel {
let display_text;
if (type === "bool") {
display_text = value ? "True" : "False";
} else if (type === "None") {
display_text = "None";
} else {
display_text = JSON.stringify(value);
}
Expand Down
Loading

0 comments on commit 727f9a1

Please sign in to comment.