Fix API Preview crashing for custom schema

This commit is contained in:
0xvikasrushi committed 2023-08-30 23:15:38 +05:30
1 parent c61123a03e
commit 141ecece25
1 file changed
+1 -1
@@ -20,7 +20,7 @@ const ResourceContent = ({
const resourcePaths = paths[`/${resourceId}`]
const resourceDefinition = definitions[resourceId]
const resourceMeta = resources[resourceId]
const description = resourceDefinition.description || null
const description = resourceDefinition?.description || null
const methods = Object.keys(resourcePaths).map((x) => x.toUpperCase())
const properties = Object.entries(resourceDefinition.properties || []).map(([id, val]: any) => ({
...val,