mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
* Updated package json but not updated source files * Update eslint plugin * updated files
12 lines
523 B
TypeScript
12 lines
523 B
TypeScript
import { validateVariableSelectionState } from '../state/actions';
|
|
import { ThunkResult } from 'app/types';
|
|
import { createCustomOptionsFromQuery } from './reducer';
|
|
import { toVariablePayload, VariableIdentifier } from '../state/types';
|
|
|
|
export const updateCustomVariableOptions = (identifier: VariableIdentifier): ThunkResult<void> => {
|
|
return async (dispatch) => {
|
|
await dispatch(createCustomOptionsFromQuery(toVariablePayload(identifier)));
|
|
await dispatch(validateVariableSelectionState(identifier));
|
|
};
|
|
};
|