fix(native-filters): fix lint (#14387)

* fix:fix get permission function

* lint: fix types
This commit is contained in:
simcha90 2021-04-28 10:16:21 +03:00 committed by GitHub
parent 2486fd4f6d
commit fc0c1155c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -45,8 +45,13 @@ export type DashboardLayout = { [key: string]: LayoutItem };
export type DashboardLayoutState = { present: DashboardLayout };
export type DashboardState = { editMode: boolean; directPathToChild: string[] };
export type DashboardInfo = {
common: {
flash_messages: string[];
conf: JsonObject;
};
userId: string;
dash_edit_perm: boolean;
metadata: { show_native_filters: boolean };
metadata: { show_native_filters: boolean; chart_configuration: JsonObject };
};
/** Root state of redux */
@ -59,7 +64,6 @@ export type RootState = {
dashboardState: DashboardState;
dashboardInfo: DashboardInfo;
dataMask: DataMaskStateWithId;
dashboardInfo: JsonObject;
impressionId: string;
nativeFilters: NativeFiltersState;
};