We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadParams
1 parent e1993fa commit abe9358Copy full SHA for abe9358
1 file changed
assets/vue/views/course/CatalogueCourses.vue
@@ -194,9 +194,14 @@ const loadExtraFields = async () => {
194
195
let loadParams = {
196
itemsPerPage: "12",
197
+ order: { [sortField.value]: "asc" },
198
}
199
200
const load = async () => {
201
+ if (0 === Object.entries(loadParams).length) {
202
+ return
203
+ }
204
+
205
status.value = true
206
207
try {
@@ -304,7 +309,10 @@ function onAdvancedApply(payload) {
304
309
305
310
306
311
function onAdvancedClear() {
307
- loadParams = {}
312
+ loadParams = {
313
+ itemsPerPage: "12",
314
315
308
316
317
318
const visibleCoursesBase = computed(() => {
0 commit comments