windmill-components 1.503.1 → 1.503.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,9 @@ $effect(() => {
|
|
|
34
34
|
if (value === undefined) {
|
|
35
35
|
if (initialValue) {
|
|
36
36
|
console.log('initialValue', initialValue);
|
|
37
|
-
value
|
|
37
|
+
if (initialValue != value) {
|
|
38
|
+
value = initialValue;
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
else {
|
|
40
42
|
console.log('no value');
|
|
@@ -70,7 +72,7 @@ async function loadResources(resourceType) {
|
|
|
70
72
|
nc.push({ value: value ?? initialValue, label: value ?? initialValue, type: '' });
|
|
71
73
|
}
|
|
72
74
|
collection = nc;
|
|
73
|
-
if (collection.length == 1 && selectFirst && value == undefined) {
|
|
75
|
+
if (collection.length == 1 && selectFirst && (value == undefined || value == '')) {
|
|
74
76
|
console.log('selectFirst', collection[0].value);
|
|
75
77
|
value = collection[0].value;
|
|
76
78
|
valueType = collection[0].type;
|
|
@@ -82,9 +84,15 @@ async function loadResources(resourceType) {
|
|
|
82
84
|
}
|
|
83
85
|
loading = false;
|
|
84
86
|
}
|
|
87
|
+
let previousResourceType = resourceType;
|
|
85
88
|
$effect(() => {
|
|
86
89
|
$workspaceStore && resourceType;
|
|
87
|
-
|
|
90
|
+
untrack(() => {
|
|
91
|
+
if (previousResourceType != resourceType) {
|
|
92
|
+
previousResourceType = resourceType;
|
|
93
|
+
value = undefined;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
88
96
|
untrack(() => loadResources(resourceType));
|
|
89
97
|
});
|
|
90
98
|
let appConnect = $state();
|
|
@@ -163,6 +163,7 @@ async function onAiProviderChange(provider) {
|
|
|
163
163
|
<!-- this can be removed once the parent component moves to runes -->
|
|
164
164
|
<!-- svelte-ignore binding_property_non_reactive -->
|
|
165
165
|
<ResourcePicker
|
|
166
|
+
selectFirst
|
|
166
167
|
resourceType={provider === 'openai' && usingOpenaiClientCredentialsOauth
|
|
167
168
|
? 'openai_client_credentials_oauth'
|
|
168
169
|
: provider}
|
|
@@ -1630,9 +1630,6 @@ export declare const $AuditLog: {
|
|
|
1630
1630
|
readonly parameters: {
|
|
1631
1631
|
readonly type: "object";
|
|
1632
1632
|
};
|
|
1633
|
-
readonly span: {
|
|
1634
|
-
readonly type: "string";
|
|
1635
|
-
};
|
|
1636
1633
|
};
|
|
1637
1634
|
readonly required: readonly ["id", "timestamp", "username", "operation", "action_kind"];
|
|
1638
1635
|
};
|