initialize path and context component members to avoid null exception

This commit is contained in:
alecmerdler 2017-04-06 15:25:52 -07:00
parent a8ec7865a7
commit 49c04eb7af
4 changed files with 41 additions and 42 deletions

View file

@ -11,7 +11,7 @@ import { Input, Component, OnChanges, SimpleChanges } from 'ng-metadata/core';
export class DockerfilePathSelectComponent implements OnChanges {
// FIXME: Use one-way data binding
@Input('=') public currentPath: string;
@Input('=') public currentPath: string = '';
@Input('=') public isValidPath: boolean;
@Input('=') public paths: string[];
@Input('=') public supportsFullListing: boolean;