mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +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:
committed by
Andrew Henry
parent
4df6d6141b
commit
1a23f2b390
@ -66,7 +66,7 @@ define([
|
|||||||
if (request && request.hasOwnProperty(prop)) {
|
if (request && request.hasOwnProperty(prop)) {
|
||||||
workerRequest[prop] = request[prop];
|
workerRequest[prop] = request[prop];
|
||||||
}
|
}
|
||||||
if (!workerRequest[prop]) {
|
if (!workerRequest.hasOwnProperty(prop)) {
|
||||||
workerRequest[prop] = REQUEST_DEFAULTS[prop];
|
workerRequest[prop] = REQUEST_DEFAULTS[prop];
|
||||||
}
|
}
|
||||||
workerRequest[prop] = Number(workerRequest[prop]);
|
workerRequest[prop] = Number(workerRequest[prop]);
|
||||||
|
Reference in New Issue
Block a user