Handle null case for invalid ng-model value (fixes #2392)
Invalid ng-model value is assigned `null` by angular.js which is being matched as `object`, thus disappear in the UI when a minus sign is entered.
This commit is contained in:
@@ -1531,6 +1531,9 @@ angular.module('syncthing.core')
|
||||
if (key.substr(0, 1) === '_') {
|
||||
return 'skip';
|
||||
}
|
||||
if (value === null) {
|
||||
return 'null';
|
||||
}
|
||||
if (typeof value === 'number') {
|
||||
return 'number';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user