We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7e313 commit ddb7e67Copy full SHA for ddb7e67
index.js
@@ -23,8 +23,8 @@ function isObjectWithProperties(node) {
23
// Default interface props don't need labels and descriptions
24
function isDefaultInterfaceProperty(propertyName, properties) {
25
if (propertyName === "label" || propertyName === "description") {
26
- const interfacePropValue = findPropertyWithName("type", properties).value;
27
- return (interfacePropValue.value === "$.interface.timer" || interfacePropValue.value === "$.interface.http");
+ const interfacePropValue = findPropertyWithName("type", properties)?.value;
+ return (interfacePropValue?.value === "$.interface.timer" || interfacePropValue?.value === "$.interface.http");
28
}
29
return false;
30
0 commit comments