Skip to content

Commit f985bdb

Browse files
committed
updates
1 parent ddc98f7 commit f985bdb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/hubspot/actions/common/common-create.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,29 @@ export default {
122122
objectType,
123123
});
124124
const relevantProperties = properties.filter(this.isRelevantProperty);
125+
125126
const propDefinitions = [];
127+
if (this.propertyGroups && !relevantProperties?.length) {
128+
propDefinitions.push({
129+
type: "alert",
130+
alertType: "info",
131+
name: "infoAlert",
132+
content: `No writable properties found for Property Group(s): ${this.propertyGroups.join(", ")}`,
133+
});
134+
}
135+
126136
for (const property of relevantProperties) {
127137
propDefinitions.push(await this.makePropDefinition(property, schema.requiredProperties));
128138
}
139+
129140
if (existingProps.objectProperties) {
130141
existingProps.objectProperties.hidden = true;
131142
existingProps.objectProperties.optional = true;
132143
}
133144
if (existingProps.propertyGroups) {
134145
existingProps.propertyGroups.hidden = false;
135146
}
147+
136148
return propDefinitions
137149
.reduce((props, {
138150
name, ...definition

0 commit comments

Comments
 (0)