Skip to content

Commit

Permalink
Fix non-ref access.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 committed Apr 24, 2024
1 parent 9428323 commit 9833004
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uoe-eng/tabularasa",
"version": "1.32.0",
"version": "1.32.1",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --target lib --name tabularasa src/index.js",
Expand Down
10 changes: 5 additions & 5 deletions src/components/TRList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ const columns = computed(() => {
const getUIState = () => {
// Return current state of filters and sorting params
let uiState = { filters: filters.value }
if (sortField.value && sortOrder.value) {
uiState['sortField'] = sortField.value
uiState['sortOrder'] = sortOrder.value
if (sortField && sortOrder) {
uiState['sortField'] = sortField
uiState['sortOrder'] = sortOrder
}
return uiState
}
Expand Down Expand Up @@ -163,8 +163,8 @@ const onClearFilters = () => {
const onLazy = (type, event) => {
// Cache sort params for getUIState
if (type === 'sort') {
sortField.value = event.sortField
sortOrder.value = event.sortOrder
sortField = event.sortField
sortOrder = event.sortOrder
}
dtProps.value.limit = event.rows
trBus.emit(`TRList:${type}:${props.name}`, event)
Expand Down

0 comments on commit 9833004

Please sign in to comment.