Skip to content

Commit

Permalink
[Backport 2.17] Fix issues in running historical analysis and custom …
Browse files Browse the repository at this point in the history
…result index section (#897)

Signed-off-by: Jackie Han <jkhanjob@gmail.com>
  • Loading branch information
jackiehanyang authored Oct 14, 2024
1 parent f22b65c commit d069a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function CustomResultIndex(props: CustomResultIndexProps) {
disabled={props.isEdit}
onChange={() => {
if (enabled) {
form.setFieldValue('resultIndex', '');
form.setFieldValue('resultIndex', undefined);
}
setEnabled(!enabled);
}}
Expand Down
6 changes: 2 additions & 4 deletions public/redux/reducers/ad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,8 @@ export const startHistoricalDetector = (
startTime: number,
endTime: number
): APIAction => {
const baseUrl = `..${AD_NODE_API.DETECTOR}/${detectorId}`;
const url = dataSourceId
? `${baseUrl}/${dataSourceId}/start`
: `${baseUrl}/start`;
const baseUrl = `..${AD_NODE_API.DETECTOR}/${detectorId}/start`;
const url = dataSourceId ? `${baseUrl}/${dataSourceId}` : baseUrl;

return {
type: START_HISTORICAL_DETECTOR,
Expand Down

0 comments on commit d069a37

Please sign in to comment.