[autofix.ci] apply automated fixes (attempt 2/3)
This commit is contained in:
parent
7bd03336bf
commit
92edf1aad2
3 changed files with 6 additions and 4 deletions
|
|
@ -23,7 +23,9 @@ export default function FlowSettingsModal({
|
||||||
|
|
||||||
const [name, setName] = useState(currentFlow!.name);
|
const [name, setName] = useState(currentFlow!.name);
|
||||||
const [description, setDescription] = useState(currentFlow!.description);
|
const [description, setDescription] = useState(currentFlow!.description);
|
||||||
const [endpoint_name, setEndpointName] = useState(currentFlow!.endpoint_name??"");
|
const [endpoint_name, setEndpointName] = useState(
|
||||||
|
currentFlow!.endpoint_name ?? "",
|
||||||
|
);
|
||||||
const [isSaving, setIsSaving] = useState(false);
|
const [isSaving, setIsSaving] = useState(false);
|
||||||
const [disableSave, setDisableSave] = useState(true);
|
const [disableSave, setDisableSave] = useState(true);
|
||||||
function handleClick(): void {
|
function handleClick(): void {
|
||||||
|
|
@ -61,7 +63,7 @@ export default function FlowSettingsModal({
|
||||||
if (
|
if (
|
||||||
(!nameLists.includes(name) && currentFlow?.name !== name) ||
|
(!nameLists.includes(name) && currentFlow?.name !== name) ||
|
||||||
currentFlow?.description !== description ||
|
currentFlow?.description !== description ||
|
||||||
((currentFlow?.endpoint_name??"") !== endpoint_name &&
|
((currentFlow?.endpoint_name ?? "") !== endpoint_name &&
|
||||||
isEndpointNameValid(endpoint_name ?? "", 50))
|
isEndpointNameValid(endpoint_name ?? "", 50))
|
||||||
) {
|
) {
|
||||||
setDisableSave(false);
|
setDisableSave(false);
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,7 @@ export type IconComponentProps = {
|
||||||
export type InputProps = {
|
export type InputProps = {
|
||||||
name: string | null;
|
name: string | null;
|
||||||
description: string | null;
|
description: string | null;
|
||||||
endpointName?: string|null;
|
endpointName?: string | null;
|
||||||
maxLength?: number;
|
maxLength?: number;
|
||||||
setName?: (name: string) => void;
|
setName?: (name: string) => void;
|
||||||
setDescription?: (description: string) => void;
|
setDescription?: (description: string) => void;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export type FlowType = {
|
||||||
id: string;
|
id: string;
|
||||||
data: ReactFlowJsonObject | null;
|
data: ReactFlowJsonObject | null;
|
||||||
description: string;
|
description: string;
|
||||||
endpoint_name?: string|null;
|
endpoint_name?: string | null;
|
||||||
style?: FlowStyleType;
|
style?: FlowStyleType;
|
||||||
is_component?: boolean;
|
is_component?: boolean;
|
||||||
last_tested_version?: string;
|
last_tested_version?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue