You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Sorry! Meant to submit this as a pull request but pushed it directly instead. My bad.
@Dominic-DallOsto could you please check if this makes sense to you too? 0297759 fixed #290 but it introduced a bug too. Because it was checked whether orphanedActionSelection.value was falsy to decide whether the user had cancelled, this not only evaluated to false when it was undefined (user had cancelled) but also when it was 0 (user chose option 0: "keep").
I think explicitly checking if it's undefined should fix it.
ed2f16f
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.
Sorry! Meant to submit this as a pull request but pushed it directly instead. My bad.
@Dominic-DallOsto could you please check if this makes sense to you too? 0297759 fixed #290 but it introduced a bug too. Because it was checked whether
orphanedActionSelection.value
was falsy to decide whether the user had cancelled, this not only evaluated tofalse
when it wasundefined
(user had cancelled) but also when it was0
(user chose option 0: "keep").I think explicitly checking if it's
undefined
should fix it.ed2f16f
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.
Looks good!