fix: sorting on advanced modal parameters (#2730)
Added sorting in advanced values
This commit is contained in:
parent
caae43bc9b
commit
3d02075170
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import sortFields from "@/CustomNodes/utils/sort-fields";
|
||||
import { useMemo } from "react";
|
||||
import { LANGFLOW_SUPPORTED_TYPES } from "../../../constants/constants";
|
||||
import { APIClassType } from "../../../types/api";
|
||||
import { NodeDataType } from "../../../types/flow";
|
||||
|
||||
|
|
@ -21,6 +21,7 @@ const useRowData = (
|
|||
)
|
||||
);
|
||||
})
|
||||
.sort((a, b) => sortFields(a, b, myData.node?.field_order ?? []))
|
||||
.map((key: string) => {
|
||||
const templateParam = myData.node!.template[key] as any;
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue