File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
components/hubspot/actions/common Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments