File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
src/bundle/Resources/public/js/scripts Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 7878 } ;
7979 const handleFormClear = ( ) => {
8080 clearForm ( ) ;
81- clearBtn . disabled = true ;
82- applyBtn . disabled = ! checkFieldsValuesChanged ( ) ;
83- applyBtn . click ( ) ;
81+
82+ if ( clearBtn ) {
83+ clearBtn . disabled = true ;
84+ }
85+
86+ if ( applyBtn ) {
87+ applyBtn . disabled = ! checkFieldsValuesChanged ( ) ;
88+ applyBtn . click ( ) ;
89+ }
8490 } ;
8591 const handleInputChange = ( ) => {
86- clearBtn . disabled = checkAreFiltersCleared ( ) ;
87- applyBtn . disabled = ! checkFieldsValuesChanged ( ) ;
92+ if ( clearBtn ) {
93+ clearBtn . disabled = checkAreFiltersCleared ( ) ;
94+ }
95+
96+ if ( applyBtn ) {
97+ applyBtn . disabled = ! checkFieldsValuesChanged ( ) ;
98+ }
8899 } ;
89100
90101 dropdownNodes . forEach ( ( dropdownNode ) => {
You can’t perform that action at this time.
0 commit comments