Fix resetting sort column when sort column doesn't exist in schema whenever schema is yet to be loaded
This commit is contained in:
parent
10cbf4f08a
commit
c7d1010ce3
|
@ -31,10 +31,10 @@ export const initialise = context => {
|
|||
const sortColumnExists = derived(
|
||||
[sort, definition],
|
||||
([$sort, $definition]) => {
|
||||
if (!$sort?.column) {
|
||||
if (!$sort?.column || !$definition) {
|
||||
return true
|
||||
}
|
||||
return $definition?.schema?.[$sort.column] != null
|
||||
return $definition.schema?.[$sort.column] != null
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue