File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import fs from 'fs';
8
8
import { cloneDeep } from 'lodash' ;
9
9
import { v4 as uuid4 } from 'uuid' ;
10
10
11
+ import { EMPTY_PROJECT_CONFIG } from '../../Frontend/shared-constants' ;
11
12
import { AllowedFrontendChannels } from '../../shared/ipc-channels' ;
12
13
import {
13
14
Attributions ,
@@ -167,7 +168,7 @@ export async function loadInputAndOutputFromFilePath(
167
168
mainWindow . webContents . send ( AllowedFrontendChannels . FileLoaded , {
168
169
metadata : parsedInputData . metadata ,
169
170
resources : parsedInputData . resources ,
170
- config : parsedInputData . config ,
171
+ config : parsedInputData . config ?? EMPTY_PROJECT_CONFIG ,
171
172
manualAttributions : {
172
173
attributions : manualAttributions ,
173
174
resourcesToAttributions : parsedOutputData . resourcesToAttributions ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export interface RawFrequentLicense {
46
46
export interface ParsedOpossumInputFile {
47
47
metadata : ProjectMetadata ;
48
48
resources : Resources ;
49
- config : ProjectConfig ;
49
+ config ? : ProjectConfig ;
50
50
externalAttributions : RawAttributions ;
51
51
resourcesToAttributions : ResourcesToAttributions ;
52
52
frequentLicenses ?: Array < RawFrequentLicense > ;
You can’t perform that action at this time.
0 commit comments