fix: can not correctly set force in store (#19932)

* fix: can not correctly set force in store

* fix ut
This commit is contained in:
Yongjie Zhao
2022-05-04 04:37:36 +08:00
committed by GitHub
parent 7f8279b4b3
commit 24e4ab6a1f
6 changed files with 22 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ const createProps = () => ({
sort_y_axis: 'alpha_asc',
extra_form_data: {},
},
queryForce: false,
chartStatus: 'rendered',
onCollapseChange: jest.fn(),
queriesResponse: [

View File

@@ -233,6 +233,7 @@ const TableControls = ({
export const DataTablesPane = ({
queryFormData,
queryForce,
onCollapseChange,
chartStatus,
ownState,
@@ -240,6 +241,7 @@ export const DataTablesPane = ({
queriesResponse,
}: {
queryFormData: Record<string, any>;
queryForce: boolean;
chartStatus: string;
ownState?: JsonObject;
onCollapseChange: (isOpen: boolean) => void;
@@ -271,6 +273,7 @@ export const DataTablesPane = ({
}));
return getChartDataRequest({
formData: queryFormData,
force: queryForce,
resultFormat: 'json',
resultType,
ownState,