fix: allow option to generate new query (#13488)

This commit is contained in:
Elizabeth Thompson
2021-03-18 11:42:31 -07:00
committed by GitHub
parent ecfcaea803
commit b97bbed2a9
4 changed files with 58 additions and 3 deletions

View File

@@ -352,6 +352,13 @@ export function runQuery(query) {
};
}
export function reRunQuery(query) {
// run Query with a new id
return function (dispatch) {
dispatch(runQuery({ ...query, id: shortid.generate() }));
};
}
export function validateQuery(query) {
return function (dispatch) {
dispatch(startQueryValidation(query));