Minor fixes (#1103)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-03-05 11:59:27 +07:00
committed by GitHub
parent d22fbaee48
commit 07ad3bba09
6 changed files with 18 additions and 16 deletions
@@ -49,10 +49,10 @@
if (!opened) {
opened = true
showPopup(DoneStatesPopup, { space }, container, (result) => {
if (result) {
if (result && result._id !== value) {
value = result._id
onChange(value)
} else if (result === null) {
} else if (result === null && value !== null) {
value = null
onChange(value)
}
@@ -40,7 +40,7 @@
if (!opened) {
opened = true
showPopup(StatesPopup, { space: state.space }, container, (result) => {
if (result) {
if (result && result._id !== value) {
value = result._id
onChange(value)
}