空リストの修正

This commit is contained in:
Mouriya
2024-06-17 15:19:36 +09:00
parent 0e8d1957a3
commit 734adf9a1e

View File

@@ -32,7 +32,7 @@ export default {
]
const { state : rows, isReady: isLoaded, isLoading } = useAsyncState((args) => {
if (props.fields) {
if (props.fields && Object.keys(props.fields).length > 0) {
return props.fields.map(f => ({ name: f.label, objectType: 'field', ...f }));
} else {
return api.get('api/v1/appfields', {