Skip to content

Commit

Permalink
UI: Configurator: Dynamic device dropdown not showing up #1764
Browse files Browse the repository at this point in the history
  • Loading branch information
shral committed Jan 8, 2019
1 parent 96470f8 commit 9ea8faf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {DynamicFieldService} from "./dynamic-field.service";

import * as _ from "lodash";
@Component({
selector: 'dynamic-field',
templateUrl: './dynamic-field.component.html',
Expand Down Expand Up @@ -73,7 +73,7 @@ export class DynamicFieldComponent implements OnInit {
console.log("element",this.elements);
console.log("element",this.model);
console.log("checked",this.checked);
if(this.checked && this.checked.length > 1){
if(this.checked && _.isArray(this.checked) && this.checked.length > 1){
this.checked.forEach(c=>{
let found = false;
this.elements.forEach(e =>{
Expand Down

0 comments on commit 9ea8faf

Please sign in to comment.