@@ -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: '',
}));