Closed sunpar closed 6 years ago
Getting the error "qdt-components.js:11 Unhandled promise rejection TypeError: N.default.uid is not a function" when trying to use the current selections type.
My angular 6 component:
@Component({ selector: 'qdt-component', templateUrl: './qdt-component.component.html', styleUrls: ['./qdt-component.component.css'] }) export class QdtComponent implements OnInit { static qdtComponents = new QdtComponents(options.config, options.connections); @Input() type: string; @Input() props: object; constructor(private elementRef: ElementRef) { } ngOnInit() { QdtComponent.qdtComponents.render(this.type, this.props, this.elementRef.nativeElement); console.log(this.type, this.props, this.elementRef.nativeElement); } }
And usage:
<qdt-component [type]="viz1.type" [props]="viz1.props"></qdt-component> private viz1: any = { type: 'QdtCurrentSelections', props: { height: '40px' }, };
I think I found the culprit: a typo in the qdtcurrentselections component. I've submitted a pull request for it.
Thank you Sundeep for the fix
Getting the error "qdt-components.js:11 Unhandled promise rejection TypeError: N.default.uid is not a function" when trying to use the current selections type.
My angular 6 component:
And usage: