Skip to content

Commit

Permalink
fix frontend unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 23, 2024
1 parent d851933 commit 9727d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ export default tsEslint.config(
},
],
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions', 'constructors'] }],
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
//Turn off to allow ! in the code
//Turned off to allow ! in the code
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',

'@typescript-eslint/no-confusing-non-null-assertion': 'error',

//Stylistic eslint rules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class KeyresultDialogComponent {
id: this.data.keyResult?.id
} as KeyResultOrdinalDTO;
keyResult.id = this.data.keyResult?.id;
keyResult.version = this.data.keyResult.version!;
keyResult.version = this.data.keyResult?.version!;
keyResult.actionList = keyResult.actionList!.filter((action: Action) => action.action !== '');
this.keyResultService.saveKeyResult(keyResult)
.subscribe((returnValue) => {
Expand Down

0 comments on commit 9727d3b

Please sign in to comment.