diff --git a/core/client/components/collection/KTable.vue b/core/client/components/collection/KTable.vue index 4792a7b28..f7548575f 100644 --- a/core/client/components/collection/KTable.vue +++ b/core/client/components/collection/KTable.vue @@ -203,7 +203,7 @@ function onRequest (props) { const geoJson = (_.get(items.value, '[0].type') === 'Feature') currentPage.value = page if (pagination.value.descending !== descending || pagination.value.sortBy !== sortBy) { - sortBy === null? tableQuery.value.$sort = { _id: 1 } : tableQuery.value.$sort = { [geoJson ? `properties.${sortBy}` : sortBy]: (descending ? -1 : 1) } + sortBy === null ? tableQuery.value.$sort = { _id: 1 } : tableQuery.value.$sort = { [geoJson ? `properties.${sortBy}` : sortBy]: (descending ? -1 : 1) } options.filterQuery.value = Object.assign({}, props.filterQuery, tableQuery.value) } else { refreshCollection() @@ -263,4 +263,4 @@ defineExpose({ refreshCollection, resetCollection }) - \ No newline at end of file + diff --git a/core/client/components/media/KRibbon.vue b/core/client/components/media/KRibbon.vue index c3a6a96a8..52ff04fe9 100644 --- a/core/client/components/media/KRibbon.vue +++ b/core/client/components/media/KRibbon.vue @@ -5,7 +5,6 @@