Skip to content

Commit 0095afb

Browse files
committed
fix: add additional checks for listResource and listResourceRefColumn in computed properties and getList function
1 parent a322e91 commit 0095afb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

custom/InlineList.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const selfPrimaryKeyColumn = computed(() => {
169169
});
170170
171171
const filterableColumns = computed(() => {
172-
if (!listResource.value) {
172+
if (!listResource.value || !listResourceRefColumn.value) {
173173
return [];
174174
}
175175
@@ -288,6 +288,9 @@ async function startBulkAction(actionId) {
288288
289289
async function getList() {
290290
rows.value = null;
291+
if( !listResource.value ){
292+
return;
293+
}
291294
const data = await callAdminForthApi({
292295
path: '/get_resource_data',
293296
method: 'POST',

0 commit comments

Comments
 (0)