mirror of
https://github.com/grafana/grafana.git
synced 2025-01-07 22:53:56 -06:00
7 lines
263 B
TypeScript
7 lines
263 B
TypeScript
|
import { DashboardModel } from '../../app/features/dashboard/state';
|
||
|
|
||
|
export const getDashboardModel = (json: any, meta: any = {}) => {
|
||
|
const getVariablesFromState = () => json.templating.list;
|
||
|
return new DashboardModel(json, meta, getVariablesFromState);
|
||
|
};
|