Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration
This commit is contained in:
commit
4fb34c6641
2 changed files with 6 additions and 5 deletions
|
|
@ -341,7 +341,8 @@ class CustomComponent(Component):
|
|||
) -> Any:
|
||||
if not flow_id and not flow_name:
|
||||
raise ValueError("Flow ID or Flow Name is required")
|
||||
|
||||
if not self._flows_records:
|
||||
self.list_flows()
|
||||
if not flow_id and self._flows_records:
|
||||
flow_ids = [
|
||||
flow.data["id"]
|
||||
|
|
|
|||
|
|
@ -134,14 +134,14 @@ export default function ParameterComponent({
|
|||
|
||||
useEffect(() => {
|
||||
function fetchData() {
|
||||
if (data.node?.template[name]?.refresh) {
|
||||
if (
|
||||
data.node?.template[name]?.refresh &&
|
||||
Object.keys(data.node?.template[name]?.options ?? {}).length === 0
|
||||
) {
|
||||
handleUpdateValues(name, data, false);
|
||||
}
|
||||
}
|
||||
fetchData();
|
||||
// I want this to run as soon as the component mounts
|
||||
// but it is not updating the data
|
||||
// the .refresh does not change
|
||||
}, []);
|
||||
const handleOnNewValue = (
|
||||
newValue: string | string[] | boolean | Object[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue