Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variables without selected values to selection payload for data requests #592

Merged
merged 4 commits into from
Mar 25, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor TableDataProvider to use OutputFormatType for table data ret…
…rieval
oyessb committed Mar 19, 2025
commit 2babc5330b9673b502162e55a887611a7d81cc8a
3 changes: 2 additions & 1 deletion packages/pxweb2/src/app/context/TableDataProvider.tsx
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import React, { createContext, useEffect, useState, ReactNode } from 'react';
import useVariables from './useVariables';
import {
Dataset,
OutputFormatType,
TableService,
VariableSelection,
VariablesSelection,
@@ -261,7 +262,7 @@ const TableDataProvider: React.FC<TableDataProviderProps> = ({ children }) => {
const res = await TableService.getTableDataByPost(
tableId,
i18n.language,
'json-stat2',
OutputFormatType.JSON_STAT2,
undefined,
variablesSelection,
);