Alerting: Fix duplicating queries in rule editor (#41091)

pull/41198/head
Domas 4 years ago committed by GitHub
parent 28ae9f1bdd
commit 69fe2def89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/alerting/unified/components/rule-editor/QueryWrapper.tsx

@ -79,7 +79,7 @@ export const QueryWrapper: FC<Props> = ({
query={cloneDeep(query.model)} query={cloneDeep(query.model)}
onChange={(query) => onChangeQuery(query, index)} onChange={(query) => onChangeQuery(query, index)}
onRemoveQuery={onRemoveQuery} onRemoveQuery={onRemoveQuery}
onAddQuery={onDuplicateQuery} onAddQuery={() => onDuplicateQuery(cloneDeep(query))}
onRunQuery={onRunQueries} onRunQuery={onRunQueries}
queries={queries} queries={queries}
renderHeaderExtras={() => renderTimePicker(query, index)} renderHeaderExtras={() => renderTimePicker(query, index)}

Loading…
Cancel
Save