Skip to content

Commit

Permalink
Fix URL encoding errorsç
Browse files Browse the repository at this point in the history
  • Loading branch information
R0MANDEV committed Oct 8, 2024
1 parent f101a28 commit ec0d9ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/src/components/List/Content/FastSearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const FastSearchField = (

useEffect(() => {
//reset value
setValue((firstColumnCriteria?.value as string) || '');
setValue(decodeURIComponent(firstColumnCriteria?.value as string) || '');
}, [firstColumnCriteria]);

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function ContentFilterSelector(
const propertyFilters = filters[firstFilter] || [];

let preferredFilter = currentColumn?.preferredFilter || 'partial';

if (currentColumn && !currentColumn.preferredFilter) {
switch (true) {
case isPropertyScalar(currentColumn) &&
Expand All @@ -94,7 +94,7 @@ export default function ContentFilterSelector(
newCriteria[idx] = {
name,
type,
value,
value: decodeURIComponent(value),
};
setCriteria(newCriteria);
};
Expand Down

0 comments on commit ec0d9ad

Please sign in to comment.