@@ -735,6 +735,10 @@ func (impl *CdHandlerImpl) FetchAppWorkflowStatusForTriggerViewForEnvironment(re
735735	// filter out pipelines for unauthorized apps but not envs 
736736	appResults , _  :=  request .CheckAuthBatch (token , appObjectArr , envObjectArr )
737737	for  _ , pipeline  :=  range  pipelines  {
738+ 		if  _ , ok  :=  objects [pipeline .Id ]; ! ok  {
739+ 			impl .Logger .Warnw ("skipping pipeline as no object found for it" , "pipelineId" , pipeline .Id )
740+ 			continue 
741+ 		}
738742		appObject  :=  objects [pipeline .Id ][0 ]
739743		if  ! (appResults [appObject ]) {
740744			// if user unauthorized, skip items 
@@ -877,6 +881,10 @@ func (impl *CdHandlerImpl) FetchAppDeploymentStatusForEnvironments(request resou
877881	}
878882	appResults , envResults  :=  request .CheckAuthBatch (token , appObjectArr , envObjectArr )
879883	for  _ , pipeline  :=  range  cdPipelines  {
884+ 		if  _ , ok  :=  objects [pipeline .Id ]; ! ok  {
885+ 			impl .Logger .Warnw ("skipping pipeline as no object found for it" , "pipelineId" , pipeline .Id )
886+ 			continue 
887+ 		}
880888		appObject  :=  objects [pipeline .Id ][0 ]
881889		envObject  :=  objects [pipeline .Id ][1 ]
882890		if  ! (appResults [appObject ] &&  envResults [envObject ]) {
0 commit comments