diff --git a/Makefile b/Makefile index 9e9f876d9..f96931a4d 100644 --- a/Makefile +++ b/Makefile @@ -32,11 +32,10 @@ lint: poetry run ruff . --fix install_frontend: - @if [ "$(clean)" = "true" ]; then \ - cd src/frontend && npm ci; \ - else \ - cd src/frontend && npm install; \ - fi + cd src/frontend && npm install; + +install_frontendc: + cd src/frontend && npm ci; run_frontend: cd src/frontend && npm start @@ -44,6 +43,10 @@ run_frontend: frontend: make install_frontend make run_frontend + +frontendc: + make install_frontendc + make run_frontend install_backend: poetry install diff --git a/src/frontend/src/modals/ApiModal/index.tsx b/src/frontend/src/modals/ApiModal/index.tsx index 8410ee7d4..5bd93df45 100644 --- a/src/frontend/src/modals/ApiModal/index.tsx +++ b/src/frontend/src/modals/ApiModal/index.tsx @@ -49,7 +49,13 @@ const ApiModal = forwardRef( const pythonCode = getPythonCode(flow, tweak.current, tabsState); const widgetCode = getWidgetCode(flow, tabsState); const tweaksCode = buildTweaks(flow); - const codesArray = [curl_code, pythonApiCode, pythonCode, widgetCode, pythonCode]; + const codesArray = [ + curl_code, + pythonApiCode, + pythonCode, + widgetCode, + pythonCode, + ]; const [tabs, setTabs] = useState(tabsArray(codesArray, 0)); function startState() {