Skip to content

Commit

Permalink
Another attempt to fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwegner committed Jan 2, 2024
1 parent de5b1c2 commit b7b167a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/widget-commentary/src/CommentaryWidget2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
filteredLines: {
immediate: true,
handler(newVal) {
if (newVal.length) {
if (newVal && newVal.length) {
// TODO: Proper mutation
// OPTION B: Filter via selected lines
const lookup = this.buildTokenLookup(newVal);
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-textual-notes/src/TextualNotesWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
filteredLines: {
immediate: true,
handler(newVal) {
if (newVal.length) {
if (newVal && newVal.length) {
// TODO: Proper mutation
// OPTION B: Filter via selected lines
const lookup = this.buildTokenLookup(newVal);
Expand Down

0 comments on commit b7b167a

Please sign in to comment.