From 13290aa44b3665715440f62ad1a9b0325f825adc Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 22 Jan 2025 08:34:13 +0100 Subject: [PATCH] feat: refs #8077 changes 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 8d306d36c..f3e723f2f 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 = data[$attrs['key-data']] ?? data; + const rows = $attrs['key-data'] ? data[$attrs['key-data']] : data; resetData(rows); emit('onFetch', rows); return rows;