From 94692bb6d4166af90a1a646c414c9ea11d350f01 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 15 May 2023 16:13:40 -0400 Subject: [PATCH] 71 dockerfile update (#75) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐳 Fixes to the Dockerfile * 🚢 Updated port number for UI * ❌ Removed the param serialization from axios calls --- Dockerfile | 2 +- src/client/actions/comicinfo.actions.tsx | 4 ---- src/client/components/Search.tsx | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 785da1c..324fee3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,6 @@ RUN yarn --ignore-engines COPY . . -EXPOSE 3050 +EXPOSE 5173 ENTRYPOINT [ "npm", "start" ] \ No newline at end of file diff --git a/src/client/actions/comicinfo.actions.tsx b/src/client/actions/comicinfo.actions.tsx index f3d6c1b..5224eb9 100644 --- a/src/client/actions/comicinfo.actions.tsx +++ b/src/client/actions/comicinfo.actions.tsx @@ -1,7 +1,6 @@ import axios from "axios"; import rateLimiter from "axios-rate-limit"; import { setupCache } from "axios-cache-interceptor"; -import qs from "qs"; import { CV_SEARCH_SUCCESS, CV_API_CALL_IN_PROGRESS, @@ -64,9 +63,6 @@ export const comicinfoAPICall = (options) => async (dispatch) => { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", }, - paramsSerializer: (params) => { - return qs.stringify(params, { arrayFormat: "repeat" }); - }, }); switch (options.callURIAction) { diff --git a/src/client/components/Search.tsx b/src/client/components/Search.tsx index f07c422..8682c2d 100644 --- a/src/client/components/Search.tsx +++ b/src/client/components/Search.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useCallback, ReactElement } from "react"; +import React, { useCallback, ReactElement } from "react"; import { isNil, isEmpty } from "lodash"; import { IExtractedComicBookCoverFile, RootState } from "threetwo-ui-typings"; import { importToDB } from "../actions/fileops.actions";