2
0
Эх сурвалжийг харах

Merge pull request #412 from smiclea/fix-wizard-navigation

Fix navigation menu not working in Wizard Page
Dorin Paslaru 6 жил өмнө
parent
commit
dc90edd74e

+ 1 - 0
src/components/molecules/NavigationMini/NavigationMini.jsx

@@ -55,6 +55,7 @@ const NavigationStyled = styled(Navigation)`
   top: 0;
   padding-top: 24px;
   transition: left ${StyleProps.animations.swift};
+  z-index: 9;
 `
 
 export const TEST_ID = 'navigationMini'

+ 4 - 0
src/plugins/endpoint/default/ConnectionSchemaPlugin.js

@@ -19,6 +19,10 @@ import type { Schema, SchemaProperties, SchemaDefinitions } from '../../../types
 import type { Field } from '../../../types/Field'
 
 export const defaultSchemaToFields = (schema: SchemaProperties, schemaDefinitions?: ?SchemaDefinitions, parent?: string): any[] => {
+  if (!schema.properties) {
+    return []
+  }
+
   let fields = Object.keys(schema.properties).map(fieldName => {
     let properties: any = schema.properties[fieldName]