Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Apr 11, 2024
1 parent 6f51e5d commit ede2336
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/public/views/QcFlags/Create/qcFlagCreationComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export const qcFlagCreationComponenet = (creationModel) => {
),
];
const { timeRangeModel, useTimeBasedQcFlag, canSendTimeBasedQcFlag } = creationModel;
const optionalTimeInputs = useTimeBasedQcFlag
? timeRangeInput(timeRangeModel, { seconds: true, min: run.startTime, max: run.endTime })

Check failure on line 57 in lib/public/views/QcFlags/Create/qcFlagCreationComponent.js

View workflow job for this annotation

GitHub Actions / linter

'run' is not defined

Check failure on line 57 in lib/public/views/QcFlags/Create/qcFlagCreationComponent.js

View workflow job for this annotation

GitHub Actions / linter

'run' is not defined
: null;

Check failure on line 59 in lib/public/views/QcFlags/Create/qcFlagCreationComponent.js

View workflow job for this annotation

GitHub Actions / linter

Trailing spaces not allowed
const leftPanel = creationModel.run.match({
Success: (run) => [
h('.flex-row.g3', [
Expand Down Expand Up @@ -88,9 +92,7 @@ export const qcFlagCreationComponenet = (creationModel) => {
]) : null,
]),
canSendTimeBasedQcFlag
? useTimeBasedQcFlag
? timeRangeInput(timeRangeModel, { seconds: true, min: run.startTime, max: run.endTime })
: null
? optionalTimeInputs
: h('.alert', 'Can send run-based QC flag only as start or stop of run is missing'),
],
Other: () => null,
Expand Down

0 comments on commit ede2336

Please sign in to comment.