From 8d428bbd13bfe811ba68ace568ee7a6080ba64c5 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 17 Jan 2025 12:30:41 +0100 Subject: [PATCH] feat: refs #8077 change request --- src/components/CrudModel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index f3e723f2f..8d306d36c 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -114,7 +114,7 @@ onBeforeRouteLeave((to, from, next) => { }); async function fetch(data) { - const rows = $attrs['key-data'] ? data[$attrs['key-data']] : data; + const rows = data[$attrs['key-data']] ?? data; resetData(rows); emit('onFetch', rows); return rows;