From: Laurence Maultsby Date: Thu, 20 Apr 2017 15:53:03 +0000 (-0400) Subject: EditDescriptorModelProperties.js merge issue fix X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=3581a59b106203a259ee1ce8c21e2e8a0cc9f348;hp=83ebeec87b6e614f2b870e37326015a9ed468346 EditDescriptorModelProperties.js merge issue fix Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js index 22ba1791f..abb94474d 100644 --- a/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js +++ b/skyquake/plugins/composer/src/src/components/EditDescriptorModelProperties.js @@ -214,7 +214,7 @@ export default function EditDescriptorModelProperties(props) { processFieldValueChange.bind(container, pathToProperty), 2000, {maxWait: 5000})); // max wait for short-name // create an onChange event handler for a select field for the specified field path const onSelectChange = changeHandler.bind(null, processFieldValueChange.bind(container, pathToProperty)); - + if (isEnumeration) { const enumeration = Property.getEnumeration(property, value); const options = enumeration.map((d, i) => { @@ -230,17 +230,17 @@ export default function EditDescriptorModelProperties(props) { options.unshift(); } return ( - @@ -265,17 +265,17 @@ export default function EditDescriptorModelProperties(props) { options.unshift(); } return ( - @@ -298,28 +298,28 @@ export default function EditDescriptorModelProperties(props) { } const isValueSet = (val != '' && val) return ( - ); } - + if (Property.isLeafEmpty(property)) { // A null value indicates the leaf exists (as opposed to undefined). // We stick in a string when the user actually sets it to simplify things // but the correct thing happens when we serialize to user data - let isEmptyLeafPresent = (value === EMPTY_LEAF_PRESENT || value === null); + let isEmptyLeafPresent = (value === EMPTY_LEAF_PRESENT || value === null); let present = isEmptyLeafPresent ? EMPTY_LEAF_PRESENT : ""; const options = [ , @@ -327,17 +327,17 @@ export default function EditDescriptorModelProperties(props) { ] return ( - @@ -346,25 +346,25 @@ export default function EditDescriptorModelProperties(props) { if (property['preserve-line-breaks']) { return ( -