Skip to content

Commit bba1995

Browse files
Improve SQ handling: add outputformat to API call (#1121)
This fixes a situation where a SavedQuery fails to load data in TableView, because it's outputformat was not Json-stat2. We now ask for Json-stat2 specifically when fetching the SQ data, since this is the only format PxWeb2 understands.
1 parent 7a9d6c0 commit bba1995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/pxweb2/src/app/context/TableDataProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ const TableDataProvider: React.FC<TableDataProviderProps> = ({ children }) => {
286286
const res = await SavedQueriesService.runSaveQuery(
287287
loadSavedQueryId,
288288
i18n.language,
289+
OutputFormatType.JSON_STAT2,
289290
);
290291
// Map response to json-stat2 Dataset
291292
const pxDataobj: unknown = res;

0 commit comments

Comments
 (0)