Skip to content

Commit

Permalink
fix: tablecolumn query parameter should be string and relative (#14368)
Browse files Browse the repository at this point in the history
Co-authored-by: JamalAlabdullah <90609090+JamalAlabdullah@users.noreply.github.com>
  • Loading branch information
Jondyr and JamalAlabdullah authored Jan 10, 2025
1 parent d613b39 commit 683992b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type { FormItem } from '../../../../../types/FormItem';
import { PadlockLockedFillIcon } from '@studio/icons';
import { useTextResourcesQuery } from 'app-shared/hooks/queries';
import { textResourceByLanguageAndIdSelector } from '../../../../../selectors/textResourceSelectors';
import { convertDataBindingToInternalFormat } from '../../../../../utils/dataModelUtils';

export type ColumnElementProps = {
sourceColumn: TableColumn;
Expand Down Expand Up @@ -59,10 +60,11 @@ export const EditColumnElement = ({
const selectedComponentId = values[0];
const selectedComponent = components.find((comp) => comp.id === selectedComponentId);

const binding = convertDataBindingToInternalFormat(selectedComponent, 'simpleBinding');
const updatedTableColumn = {
...sourceColumn,
headerContent: selectedComponent.textResourceBindings?.title,
cellContent: { query: selectedComponent.dataModelBindings?.simpleBinding },
cellContent: { query: binding.field },
};
setTableColumn(updatedTableColumn);
};
Expand Down

0 comments on commit 683992b

Please sign in to comment.