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 Jun 30, 2024
1 parent 7794b5e commit 6dd0a04
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default function AddNewVariableButton({
const setErrorData = useAlertStore((state) => state.setErrorData);
const componentFields = useTypesStore((state) => state.ComponentFields);
const unavaliableFields = new Set(
Object.keys(useGlobalVariablesStore((state) => state.unavaliableFields) ?? {}),
Object.keys(
useGlobalVariablesStore((state) => state.unavaliableFields) ?? {},
),
);

const availableFields = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/modals/editNodeModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const EditNodeModal = forwardRef(

const handleOnNewValue = (newValue: any, key: string, setDb?: boolean) => {
myData.current.node!.template[key].value = newValue;
if(setDb){
if (setDb) {
myData.current.node!.template[key].load_from_db = newValue;
}
};
Expand Down
24 changes: 20 additions & 4 deletions src/frontend/src/types/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export type TextAreaComponentType = {
nodeClass?: APIClassType;
setNodeClass?: (value: APIClassType) => void;
disabled: boolean;
onChange: (value: string[] | string, dbValue?: boolean, skipSnapshot?: boolean) => void;
onChange: (
value: string[] | string,
dbValue?: boolean,
skipSnapshot?: boolean,
) => void;
value: string;
editNode?: boolean;
id?: string;
Expand All @@ -145,7 +149,11 @@ export type PromptAreaComponentType = {
nodeClass?: APIClassType;
setNodeClass?: (value: APIClassType, code?: string) => void;
disabled: boolean;
onChange: (value: string[] | string, dbValue?: boolean, skipSnapshot?: boolean) => void;
onChange: (
value: string[] | string,
dbValue?: boolean,
skipSnapshot?: boolean,
) => void;
value: string;
readonly?: boolean;
editNode?: boolean;
Expand All @@ -155,7 +163,11 @@ export type PromptAreaComponentType = {
export type CodeAreaComponentType = {
setOpenModal?: (bool: boolean) => void;
disabled: boolean;
onChange: (value: string[] | string, dbValue?: boolean, skipSnapshot?: boolean) => void;
onChange: (
value: string[] | string,
dbValue?: boolean,
skipSnapshot?: boolean,
) => void;
value: string;
editNode?: boolean;
nodeClass?: APIClassType;
Expand All @@ -170,7 +182,11 @@ export type CodeAreaComponentType = {
export type FileComponentType = {
IOInputProps?;
disabled: boolean;
onChange: (value: string[] | string, dbValue?: boolean, skipSnapshot?: boolean) => void;
onChange: (
value: string[] | string,
dbValue?: boolean,
skipSnapshot?: boolean,
) => void;
value: string;
fileTypes: Array<string>;
onFileChange: (value: string) => void;
Expand Down

0 comments on commit 6dd0a04

Please sign in to comment.