Remove dead code at API Modal
This commit is contained in:
parent
42ea5c8e8e
commit
9952d16071
1 changed files with 6 additions and 16 deletions
|
|
@ -50,14 +50,9 @@ const ApiModal = forwardRef(
|
||||||
const tweaksList = useRef<string[]>([]);
|
const tweaksList = useRef<string[]>([]);
|
||||||
const [getTweak, setTweak] = useState<tweakType>([]);
|
const [getTweak, setTweak] = useState<tweakType>([]);
|
||||||
const flowState = useFlowStore((state) => state.flowState);
|
const flowState = useFlowStore((state) => state.flowState);
|
||||||
const pythonApiCode = getPythonApiCode(
|
const pythonApiCode = getPythonApiCode(flow, autoLogin, tweak.current);
|
||||||
flow,
|
const curl_code = getCurlCode(flow, autoLogin, tweak.current);
|
||||||
autoLogin,
|
const pythonCode = getPythonCode(flow, tweak.current);
|
||||||
tweak.current,
|
|
||||||
flowState
|
|
||||||
);
|
|
||||||
const curl_code = getCurlCode(flow, autoLogin, tweak.current, flowState);
|
|
||||||
const pythonCode = getPythonCode(flow, tweak.current, flowState);
|
|
||||||
const widgetCode = getWidgetCode(flow, autoLogin, flowState);
|
const widgetCode = getWidgetCode(flow, autoLogin, flowState);
|
||||||
const tweaksCode = buildTweaks(flow);
|
const tweaksCode = buildTweaks(flow);
|
||||||
const codesArray = [
|
const codesArray = [
|
||||||
|
|
@ -168,14 +163,9 @@ const ApiModal = forwardRef(
|
||||||
tweak.current.push(newTweak);
|
tweak.current.push(newTweak);
|
||||||
}
|
}
|
||||||
|
|
||||||
const pythonApiCode = getPythonApiCode(
|
const pythonApiCode = getPythonApiCode(flow, autoLogin, tweak.current);
|
||||||
flow,
|
const curl_code = getCurlCode(flow, autoLogin, tweak.current);
|
||||||
autoLogin,
|
const pythonCode = getPythonCode(flow, tweak.current);
|
||||||
tweak.current,
|
|
||||||
flowState
|
|
||||||
);
|
|
||||||
const curl_code = getCurlCode(flow, autoLogin, tweak.current, flowState);
|
|
||||||
const pythonCode = getPythonCode(flow, tweak.current, flowState);
|
|
||||||
const widgetCode = getWidgetCode(flow, autoLogin, flowState);
|
const widgetCode = getWidgetCode(flow, autoLogin, flowState);
|
||||||
|
|
||||||
tabs![0].code = curl_code;
|
tabs![0].code = curl_code;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue