Skip to content
Snippets Groups Projects
Verified Commit 162e0cc7 authored by Dennis Collaris's avatar Dennis Collaris
Browse files

fix: type issue in insertvariablesplugin

parent de7eb9da
No related branches found
Tags v1.93.3
1 merge request!260fix: type issue in insertvariablesplugin
Pipeline #139549 failed
......@@ -33,9 +33,9 @@ export const InsertVariablesPlugin = () => {
const nodeTypes = Object.keys(result.metaData?.nodes.types || {});
function optionsForType(type: string) {
const typeObj = result.metaData?.nodes.types[type] ?? {};
const typeObj = result.metaData?.nodes.types[type] ?? {attributes: null};
if (!('attributes' in typeObj)) {
if (!('attributes' in typeObj) || typeObj.attributes == null) {
return [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment