77 Output ,
88 ViewChild
99} from '@angular/core' ;
10- import { ModalTemplate , SuiActiveModal , SuiModalService , TemplateModalConfig } from '@richardlt/ng2-semantic-ui' ;
10+ import { ModalTemplate , SuiActiveModal , SuiModalService , TemplateModalConfig } from '@richardlt/ng2-semantic-ui' ;
1111import {
1212 InstanceStatus ,
1313 InstanceStatusUtil ,
@@ -19,11 +19,11 @@ import {
1919 WorkflowTemplateBulkOperation ,
2020 WorkflowTemplateInstance
2121} from 'app/model/workflow-template.model' ;
22- import { WorkflowTemplateService } from 'app/service/workflow-template/workflow-template.service' ;
23- import { AutoUnsubscribe } from 'app/shared/decorator/autoUnsubscribe' ;
24- import { Column , ColumnType , Select } from 'app/shared/table/data-table.component' ;
25- import { Observable , Subscription } from 'rxjs' ;
26- import { finalize } from 'rxjs/internal/operators/finalize' ;
22+ import { WorkflowTemplateService } from 'app/service/workflow-template/workflow-template.service' ;
23+ import { AutoUnsubscribe } from 'app/shared/decorator/autoUnsubscribe' ;
24+ import { Column , ColumnType , Select } from 'app/shared/table/data-table.component' ;
25+ import { Observable , Subscription } from 'rxjs' ;
26+ import { finalize } from 'rxjs/internal/operators/finalize' ;
2727
2828@Component ( {
2929 selector : 'app-workflow-template-bulk-modal' ,
@@ -33,7 +33,7 @@ import {finalize} from 'rxjs/internal/operators/finalize';
3333} )
3434@AutoUnsubscribe ( )
3535export class WorkflowTemplateBulkModalComponent {
36- @ViewChild ( 'workflowTemplateBulkModal' , { static : false } ) workflowTemplateBulkModal : ModalTemplate < boolean , boolean , void > ;
36+ @ViewChild ( 'workflowTemplateBulkModal' , { static : false } ) workflowTemplateBulkModal : ModalTemplate < boolean , boolean , void > ;
3737 modal : SuiActiveModal < boolean , boolean , void > ;
3838 open : boolean ;
3939
@@ -154,7 +154,7 @@ export class WorkflowTemplateBulkModalComponent {
154154 this . loadingInstances = false ;
155155 this . _cd . markForCheck ( ) ;
156156 } ) )
157- . subscribe ( is => this . instances = is . filter ( i => ! i . workflow . from_repository )
157+ . subscribe ( is => this . instances = is . filter ( i => ! i . workflow || ! i . workflow . from_repository )
158158 . sort ( ( a , b ) => a . key ( ) < b . key ( ) ? - 1 : 1 ) ) ;
159159
160160 this . selectedInstanceKeys = [ ] ;
0 commit comments