Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 21, 2025
1 parent 0462a49 commit 1f7f7bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import JsonOutputViewComponent from "@/components/core/jsonOutputComponent/json-output-view";
import { MAX_TEXT_LENGTH } from "@/constants/constants";
import { LogsLogType, OutputLogType } from "@/types/api";
import { useMemo } from "react";
Expand All @@ -12,7 +13,6 @@ import { Case } from "../../../../../../shared/components/caseComponent";
import TextOutputView from "../../../../../../shared/components/textOutputView";
import useFlowStore from "../../../../../../stores/flowStore";
import ErrorOutput from "./components";
import JsonOutputViewComponent from "@/components/core/jsonOutputComponent/json-output-view";
// Define the props type
interface SwitchOutputViewProps {
nodeId: string;
Expand All @@ -36,7 +36,7 @@ const SwitchOutputView: React.FC<SwitchOutputViewProps> = ({
const resultType = results?.type;
let resultMessage = results?.message ?? {};
const RECORD_TYPES = ["array", "message"];
const JSON_TYPES = ["data","object"];
const JSON_TYPES = ["data", "object"];
if (resultMessage?.raw) {
resultMessage = resultMessage.raw;
}
Expand Down
4 changes: 3 additions & 1 deletion src/frontend/src/components/core/jsonEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const JsonEditor = ({
};
}, []);

return <div ref={containerRef} style={{ width, height }} className={className} />;
return (
<div ref={containerRef} style={{ width, height }} className={className} />
);
};

export default JsonEditor;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const JsonOutputViewComponent: React.FC<JsonOutputViewComponentProps> = ({
readOnly={true}
width={width}
height={height}
className=" border border-border rounded"
className="rounded border border-border"
/>
);
};
Expand Down

0 comments on commit 1f7f7bb

Please sign in to comment.