Skip to content

Commit

Permalink
fixed rule object to yaml conversion for timeframe (#1020)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit 2b1c6f1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jun 11, 2024
1 parent 5a3eb30 commit 44e941c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ export class DetectionVisualEditor extends React.Component<
let selectionMaps: any = {};

selection.data.forEach((datum) => {
if (datum.field) {
if (selection.name === 'timeframe') {
selectionMaps = datum.values[0] || '';
} else if (datum.field) {
const key = `${datum.field}${datum.modifier ? `|${datum.modifier}` : ''}`;
selectionMaps[key] = datum.values;
} else {
Expand Down

0 comments on commit 44e941c

Please sign in to comment.