♻️ (csvOutputComponent): replace FlowPoolObjectType with VertexBuildTypeAPI for type consistency
💡 (IOFieldView): update console.log to provide more detailed flowPool node data
This commit is contained in:
parent
9fe2d455f3
commit
5ef79e33fa
2 changed files with 6 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import {
|
||||||
CSVViewErrorTitle,
|
CSVViewErrorTitle,
|
||||||
} from "../../constants/constants";
|
} from "../../constants/constants";
|
||||||
import { useDarkStore } from "../../stores/darkStore";
|
import { useDarkStore } from "../../stores/darkStore";
|
||||||
import { FlowPoolObjectType } from "../../types/chat";
|
import { VertexBuildTypeAPI } from "../../types/api";
|
||||||
import { NodeType } from "../../types/flow";
|
import { NodeType } from "../../types/flow";
|
||||||
import ForwardedIconComponent from "../genericIconComponent";
|
import ForwardedIconComponent from "../genericIconComponent";
|
||||||
import TableComponent from "../tableComponent";
|
import TableComponent from "../tableComponent";
|
||||||
|
|
@ -19,7 +19,7 @@ function CsvOutputComponent({
|
||||||
flowPool,
|
flowPool,
|
||||||
}: {
|
}: {
|
||||||
csvNode: NodeType;
|
csvNode: NodeType;
|
||||||
flowPool: FlowPoolObjectType;
|
flowPool: VertexBuildTypeAPI;
|
||||||
}) {
|
}) {
|
||||||
const csvNodeArtifacts = flowPool?.data?.artifacts?.repr;
|
const csvNodeArtifacts = flowPool?.data?.artifacts?.repr;
|
||||||
const jsonString = csvNodeArtifacts?.replace(/'/g, '"');
|
const jsonString = csvNodeArtifacts?.replace(/'/g, '"');
|
||||||
|
|
@ -67,7 +67,7 @@ function CsvOutputComponent({
|
||||||
if (file) {
|
if (file) {
|
||||||
const { rowData: data, colDefs: columns } = convertCSVToData(
|
const { rowData: data, colDefs: columns } = convertCSVToData(
|
||||||
file,
|
file,
|
||||||
separator,
|
separator
|
||||||
);
|
);
|
||||||
setRowData(data);
|
setRowData(data);
|
||||||
setColDefs(columns);
|
setColDefs(columns);
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,9 @@ export default function IOFieldView({
|
||||||
(flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data
|
(flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data
|
||||||
.results.result ?? "";
|
.results.result ?? "";
|
||||||
|
|
||||||
console.log(flowPoolNode?.data?.artifacts?.records);
|
console.log(
|
||||||
|
(flowPool[node!.id] ?? [])[(flowPool[node!.id]?.length ?? 1) - 1]?.data
|
||||||
|
);
|
||||||
|
|
||||||
function handleOutputType() {
|
function handleOutputType() {
|
||||||
if (!node) return <>"No node found!"</>;
|
if (!node) return <>"No node found!"</>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue