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 75214fc commit 8666764Copy full SHA for 8666764
components/databricks/databricks.app.mjs
@@ -84,12 +84,20 @@ export default {
84
type: "string",
85
label: "Vector Search Index",
86
description: "The name of the vector search index",
87
- async options() {
88
- const { vector_indexes } = await this.listVectorSearchIndexes();
89
- return vector_indexes?.map(({ name: value }) => ({
90
- value,
91
- label: value,
92
- })) || [];
+ async options({ props }) {
+ if (!props.endpointName) {
+ return [];
+ }
+ const { vector_indexes = [] } = await this.listVectorSearchIndexes({
+ params: {
93
+ endpoint_name: props.endpointName,
94
+ },
95
+ });
96
+
97
+ return vector_indexes.map(({ name }) => ({
98
+ value: name,
99
+ label: name,
100
+ }));
101
},
102
103
0 commit comments