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 2feb0e2 commit 1e9bb2dCopy full SHA for 1e9bb2d
components/hubspot/actions/search-crm/search-crm.mjs
@@ -71,12 +71,20 @@ export default {
71
schema = await this.hubspot.getSchema({
72
objectType,
73
});
74
+ const properties = schema.properties;
75
+ const searchableProperties = schema.searchableProperties?.map((prop) => {
76
+ const propData = properties.find(({ name }) => name === prop);
77
+ return {
78
+ label: propData.label,
79
+ value: propData.name,
80
+ };
81
+ });
82
83
props.searchProperty = {
84
type: "string",
85
label: "Search Property",
86
description: "The field to search",
- options: schema.searchableProperties,
87
+ options: searchableProperties,
88
};
89
} catch {
90
0 commit comments