Showing
1 changed file
with
1 additions
and
1 deletions
@@ -42,7 +42,7 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => { | @@ -42,7 +42,7 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => { | ||
42 | const { deviceProfileId } = dataSourceJson || {} | 42 | const { deviceProfileId } = dataSourceJson || {} |
43 | const productsStore = useProductsStoreWithOut() | 43 | const productsStore = useProductsStoreWithOut() |
44 | const detail = productsStore.getProductDetailById(deviceProfileId!) | 44 | const detail = productsStore.getProductDetailById(deviceProfileId!) |
45 | - const { transportType } = unref(getDeviceInfo) || detail | 45 | + const { transportType } = unref(getDeviceInfo) || detail || {} |
46 | 46 | ||
47 | return [ | 47 | return [ |
48 | { | 48 | { |