Fix possible new reference
This commit is contained in:
parent
1066c638df
commit
16ea4195df
|
@ -8,6 +8,10 @@ const isBetterSample = (newValue, oldValue) => {
|
|||
return true
|
||||
}
|
||||
|
||||
if (oldValue != null && newValue == null) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Don't change type
|
||||
const oldType = typeof oldValue
|
||||
const newType = typeof newValue
|
||||
|
|
Loading…
Reference in New Issue