Skip to content

Commit

Permalink
[backend/frontend] refact
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Aug 5, 2024
1 parent 46f6be7 commit 31ef315
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void process() throws Exception {
content.setBody("A body");
Expectation expectation = new Expectation();
expectation.setName("The animation team can validate the audience reaction");
expectation.setScore(10);
expectation.setScore(10.0);
expectation.setType(InjectExpectation.EXPECTATION_TYPE.MANUAL);
content.setExpectations(List.of(expectation));
Inject inject = new Inject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,20 @@ const TargetResultsDetailFlow: FunctionComponent<Props> = ({
))}
{(['DETECTION', 'PREVENTION'].includes(injectExpectation.inject_expectation_type) || (injectExpectation.inject_expectation_type === 'MANUAL' && injectExpectation.inject_expectation_results && injectExpectation.inject_expectation_results.length === 0))
&& (
<Grid item xs={4}>
<Grid item xs={4}>
<Card classes={{ root: classes.resultCardDummy }}>
<CardActionArea classes={{ root: classes.area }} onClick={() => setSelectedExpectationForCreation({ injectExpectation, sourceIds: computeExistingSourceIds(injectExpectation.inject_expectation_results ?? []) },
)}>
<CardActionArea classes={{ root: classes.area }}
onClick={() => setSelectedExpectationForCreation({
injectExpectation,
sourceIds: computeExistingSourceIds(injectExpectation.inject_expectation_results ?? []),
})
}
>
<AddBoxOutlined />
</CardActionArea>
</Card>
</Grid>
)}
)}
</Grid>
<Divider style={{ marginTop: 20 }} />
</div>
Expand Down

0 comments on commit 31ef315

Please sign in to comment.