Browse Source

fix: remove-params

Muhammad Iqbal Afandi 3 years ago
parent
commit
394a8ab644

+ 1
- 1
resources/js/components/AppDateRangeFilter.vue View File

@@ -46,7 +46,7 @@ watch(dates, (value) => {
46 46
     var end_date = null
47 47
   }
48 48
 
49
-  removeParams('start_date', 'end_date')
49
+  removeParams('start_date', 'end_date', 'page')
50 50
 
51 51
   Inertia.reload({
52 52
     data: pickBy({

+ 1
- 1
resources/js/components/AppDropdownFilter.vue View File

@@ -22,7 +22,7 @@ const removeParams = (...params) => {
22 22
 const status = ref()
23 23
 
24 24
 watch(status, (status) => {
25
-  removeParams('status')
25
+  removeParams('status', 'page')
26 26
 
27 27
   Inertia.reload({
28 28
     data: pickBy({

+ 1
- 1
resources/js/components/AppSearchFilter.vue View File

@@ -20,7 +20,7 @@ const removeParams = (...params) => {
20 20
 const search = ref(props.initialSearch)
21 21
 
22 22
 watch(search, (search) => {
23
-  removeParams('search')
23
+  removeParams('search', 'page')
24 24
 
25 25
   Inertia.reload({
26 26
     data: pickBy({ search }),