FE+BE: allow None as a value in DeviceEdit for fields with other default NEWDEV values

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-12-23 09:27:11 +11:00
parent 4a9dc3a86f
commit 8ea63cdb56
4 changed files with 20 additions and 11 deletions

View File

@@ -1000,7 +1000,8 @@ function isRandomMAC(mac)
return input;
}
// Empty array
if (input === '[]' || input === '') {
// if (input === '[]' || input === '') {
if (input === '[]') {
return [];
}
// handle integer