Remove wrong ref type

This commit is contained in:
rijkvanzanten
2021-04-22 17:51:42 -04:00
parent 0eb5557bf6
commit 769591656b

View File

@@ -216,7 +216,7 @@ export default defineComponent({
}
function useSort() {
const sort = ref<Sort>({ by: relation.value.sort_field || fields.value[0], desc: false });
const sort = ref({ by: relation.value.sort_field || fields.value[0], desc: false });
function sortItems(newItems: Record<string, any>[]) {
if (relation.value.sort_field === null) return;