Skip to content

Commit

Permalink
Merge pull request #877 from Codeinwp/fix/683
Browse files Browse the repository at this point in the history
Fixed filter control placeholder text
  • Loading branch information
selul authored Mar 4, 2025
2 parents af424bc + aeb482f commit ba13250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-dev-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Configure Composer cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ const FilterControl = ({
};
});

const defaultFilterOperator = optimoleDashboardApp.strings.options_strings.filter_operator_contains;
const [ filterType, setFilterType ] = useState( FILTER_TYPES.FILENAME );
const [ filterOperator, setFilterOperator ] = useState( optimoleDashboardApp.strings.options_strings.filter_operator_contains );
const [ filterValue, setFilterValue ] = useState( '' );
const [ filterMatchType, setFilterMatchType ] = useState( optimoleDashboardApp.strings.options_strings.filter_operator_contains );
const [ filterMatchType, setFilterMatchType ] = useState( defaultFilterOperator );
const [ lengthError, setLengthError ] = useState( false );

const changeFilterType = value => {
Expand All @@ -127,6 +128,7 @@ const FilterControl = ({
setLengthError( false );
setFilterValue( selectedValue );
setFilterType( value );
setFilterMatchType( filterValue );
};

const updateFilterValue = value => {
Expand Down

0 comments on commit ba13250

Please sign in to comment.