Commit 08f5a333 by Hugo Häggmark

Making sure we do not pass a long invalid queries and save to state

parent edfce089
......@@ -538,6 +538,7 @@ export function runQueries(exploreId: ExploreId) {
if (!hasNonEmptyQuery(modifiedQueries)) {
dispatch({ type: ActionTypes.RunQueriesEmpty, payload: { exploreId } });
dispatch(stateSave()); // Remember to saves to state and update location
return;
}
......
......@@ -173,8 +173,9 @@ export default class LokiLanguageProvider extends LanguageProvider {
})
);
}
// Return a cleaned LokiQuery
return queries.map(query => ({
...query,
refId: query.refId,
expr: '',
}));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment