Skip to content

Commit

Permalink
UIPQB-164: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Dec 24, 2024
1 parent 6c99890 commit 51efd2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/QueryBuilder/ResultViewer/ResultViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const ResultViewer = ({
onPreviewShown,
defaultLimit,
forcedVisibleValues,
visibleColumns
visibleColumns,
});

// refresh functionality
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useViewerCallbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export const useViewerCallbacks = ({
currentRecordsCount,
onPreviewShown,
defaultLimit,
visibleColumns
visibleColumns,
}) => {
useEffect(() => {
if (defaultColumns.length !== 0) {
onSetDefaultColumns?.(defaultColumns);

const uniqueVisibleColumns = Array.from(
new Set([...defaultVisibleColumns, ...visibleColumns])
new Set([...defaultVisibleColumns, ...visibleColumns]),
);

onSetDefaultVisibleColumns?.(uniqueVisibleColumns);
Expand Down

0 comments on commit 51efd2f

Please sign in to comment.