File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
environments.ee/source-control Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,14 @@ export class SourceControlImportService {
163163 return false ;
164164 }
165165 return (
166- context . hasAccessToAllProjects ( ) || findOwnerProject ( remote . owner , accessibleProjects )
166+ context . hasAccessToAllProjects ( ) ||
167+ ( remote . owner && findOwnerProject ( remote . owner , accessibleProjects ) )
167168 ) ;
168169 } )
169170 . map ( ( remote ) => {
170- const project = findOwnerProject ( remote . owner , accessibleProjects ) ;
171+ const project = remote . owner
172+ ? findOwnerProject ( remote . owner , accessibleProjects )
173+ : undefined ;
171174 return {
172175 id : remote . id ,
173176 versionId : remote . versionId ?? '' ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export interface IWorkflowResponse extends IWorkflowBase {
4848
4949export interface IWorkflowToImport
5050 extends Omit < IWorkflowBase , 'staticData' | 'pinData' | 'createdAt' | 'updatedAt' > {
51- owner :
51+ owner ? :
5252 | {
5353 type : 'personal' ;
5454 personalEmail : string ;
You can’t perform that action at this time.
0 commit comments