mirror of
https://github.com/nasa/openmct.git
synced 2025-04-21 17:41:43 +00:00
Allow property values of zero. (#1961)
Allow SWG properties of zero to be used instead of overwriting them with defaults.
This commit is contained in:
parent
4df6d6141b
commit
1a23f2b390
@ -66,7 +66,7 @@ define([
|
||||
if (request && request.hasOwnProperty(prop)) {
|
||||
workerRequest[prop] = request[prop];
|
||||
}
|
||||
if (!workerRequest[prop]) {
|
||||
if (!workerRequest.hasOwnProperty(prop)) {
|
||||
workerRequest[prop] = REQUEST_DEFAULTS[prop];
|
||||
}
|
||||
workerRequest[prop] = Number(workerRequest[prop]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user