Skip to content

Crash when rendering with unregistered layout plugin #90

@goshander

Description

@goshander

Non informative error with global crash all dashkit

useCalcLayout.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'defaultLayout')
    at useCalcLayout.js:6:1
    at Array.map (<anonymous>)
    at onUpdatePropsConfig (useCalcLayout.js:4:1)
    at useCalcPropsLayout (useCalcLayout.js:11:1)
    at DashKitView.js:17:1
    at renderWithHooks (react-dom.development.js:14985:1)
    at updateForwardRef (react-dom.development.js:17044:1)
    at beginWork (react-dom.development.js:19098:1)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)

image

Code link

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions