aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared
diff options
context:
space:
mode:
authorsj108s <sj108s@us.att.com>2018-04-27 16:34:48 +0530
committersj108s <sj108s@us.att.com>2018-04-27 16:53:25 +0530
commitf50c51684b3dde7e9a3f4641f0fd5ee64cf45ff0 (patch)
treef0341382934c5580927f9e8d00c99e4c19932303 /src/app/shared
parent3b905ee77fec432d3e44088787c4a810ced52d3e (diff)
Fixed parsing of retrieved openstack ref data
Fixed parsing of retrieved data in case of openstack action and also fixed browser hang while syncing large template Issue-ID: APPC-867 Change-Id: I3058626cb5a21c01a9b261d470672db5d0f17926 Signed-off-by: sj108s <sj108s@us.att.com>
Diffstat (limited to 'src/app/shared')
-rw-r--r--src/app/shared/services/mapping-editor.service.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/shared/services/mapping-editor.service.ts b/src/app/shared/services/mapping-editor.service.ts
index fe70722..c27d95e 100644
--- a/src/app/shared/services/mapping-editor.service.ts
+++ b/src/app/shared/services/mapping-editor.service.ts
@@ -17,7 +17,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-ECOMP is a trademark and service mark of AT&T Intellectual Property.
============LICENSE_END============================================
*/
@@ -197,7 +196,7 @@ export class MappingEditorService {
if (value) {
var occurances = this.editor.findAll(value, {regExp: false});
var ranges = this.editor.getSelection().getAllRanges();
- if (ranges) {
+ if (ranges && occurances && occurances > 0) {
for (var r = 0; r < ranges.length; r++) {
let selectedRange: any = ranges[r];