Skip to content

Commit

Permalink
chore: edit typo
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy committed Dec 12, 2024
1 parent c4105ac commit 9dad6ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ const fetchAndExtractDynamicField = async () => {
if (!state.proxyDataTableInfo.dataTableId || !state.proxyFormData.fields?.column) return;
const _isPrivate = state.proxyDataTableInfo.dataTableId.startsWith('private');
const _fetcher = _isPrivate
? SpaceConnector.clientV2.dashboard.dataTable.load<DataTableLoadParameters, ListResponse<Record<string, string>>>
: SpaceConnector.clientV2.dashboard.dataTable.load<DataTableLoadParameters, ListResponse<Record<string, string>>>;
? SpaceConnector.clientV2.dashboard.privateDataTable.load<DataTableLoadParameters, ListResponse<Record<string, string>>>
: SpaceConnector.clientV2.dashboard.publicDataTable.load<DataTableLoadParameters, ListResponse<Record<string, string>>>;
try {
state.dynamicFieldLoading = true;
const res = await _fetcher({
widget_id: state.proxyDataTableInfo.dataTableId,
data_table_id: state.proxyDataTableInfo.dataTableId,
granularity: GRANULARITY.YEARLY,
});
const dynamicFields = getUniqueValues(res.results || [], state.proxyFormData.fields.column);
Expand Down

0 comments on commit 9dad6ed

Please sign in to comment.