Skip to content

Commit ba13250

Browse files
authored
Merge pull request #877 from Codeinwp/fix/683
Fixed filter control placeholder text
2 parents af424bc + aeb482f commit ba13250

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build-dev-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
echo "::set-output name=dir::$(composer config cache-files-dir)"
3131
- name: Configure Composer cache
32-
uses: actions/cache@v1
32+
uses: actions/cache@v4
3333
with:
3434
path: ${{ steps.composer-cache.outputs.dir }}
3535
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

assets/src/dashboard/parts/connected/settings/FilterControl.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ const FilterControl = ({
102102
};
103103
});
104104

105+
const defaultFilterOperator = optimoleDashboardApp.strings.options_strings.filter_operator_contains;
105106
const [ filterType, setFilterType ] = useState( FILTER_TYPES.FILENAME );
106107
const [ filterOperator, setFilterOperator ] = useState( optimoleDashboardApp.strings.options_strings.filter_operator_contains );
107108
const [ filterValue, setFilterValue ] = useState( '' );
108-
const [ filterMatchType, setFilterMatchType ] = useState( optimoleDashboardApp.strings.options_strings.filter_operator_contains );
109+
const [ filterMatchType, setFilterMatchType ] = useState( defaultFilterOperator );
109110
const [ lengthError, setLengthError ] = useState( false );
110111

111112
const changeFilterType = value => {
@@ -127,6 +128,7 @@ const FilterControl = ({
127128
setLengthError( false );
128129
setFilterValue( selectedValue );
129130
setFilterType( value );
131+
setFilterMatchType( filterValue );
130132
};
131133

132134
const updateFilterValue = value => {

0 commit comments

Comments
 (0)