-
-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
return typeof candidate === 'object' && candidate.constructor === Object; | ||
return candidate !== undefined && | ||
candidate !== null && | ||
typeof candidate === 'object' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typeof null is 'object', this caused an error to be thrown, adding check for undefined just so it's all very explicit
}); | ||
|
||
DashTable.getCell(0, 8).within(() => cy.get('.Select-placeholder').should('not.exist')); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test for delete + test for delete + set value after
…n-delete # Conflicts: # CHANGELOG.md # dash_table/bundle.js # dash_table/demo.js # dash_table/package.json # package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed to fix #83, and safer type checks are a good idea, so 💃 from me.
Too bad using TypeScript is unable to prevent these sorts of type errors on runtime. The fact that typeof null === 'object'
is true
is pretty bad.
No description provided.