mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
fix: can not correctly set force in store (#19932)
* fix: can not correctly set force in store * fix ut
This commit is contained in:
@@ -54,6 +54,7 @@ const createProps = () => ({
|
||||
sort_y_axis: 'alpha_asc',
|
||||
extra_form_data: {},
|
||||
},
|
||||
queryForce: false,
|
||||
chartStatus: 'rendered',
|
||||
onCollapseChange: jest.fn(),
|
||||
queriesResponse: [
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user