diff --git a/kraken-app/kraken-app-portal/src/components/APIServerDrawer/index.tsx b/kraken-app/kraken-app-portal/src/components/APIServerDrawer/index.tsx index ceb37dca..50f26f0d 100644 --- a/kraken-app/kraken-app-portal/src/components/APIServerDrawer/index.tsx +++ b/kraken-app/kraken-app-portal/src/components/APIServerDrawer/index.tsx @@ -38,7 +38,7 @@ const APIServerDrawer = ({ item, isOpen, onClose }: Props) => { const navigate = useNavigate(); const { data: componentDetail, isLoading } = useGetComponentSpecDetails( currentProduct, - item?.metadata?.key || "" + item?.metadata?.key ?? "" ); const columns = useMemo( diff --git a/kraken-app/kraken-app-portal/src/pages/HomePage/components/ActivityDiagrams/ErrorDiagram/index.tsx b/kraken-app/kraken-app-portal/src/pages/HomePage/components/ActivityDiagrams/ErrorDiagram/index.tsx index 7dcc3802..9f820c11 100644 --- a/kraken-app/kraken-app-portal/src/pages/HomePage/components/ActivityDiagrams/ErrorDiagram/index.tsx +++ b/kraken-app/kraken-app-portal/src/pages/HomePage/components/ActivityDiagrams/ErrorDiagram/index.tsx @@ -22,6 +22,10 @@ type Props = { props: DiagramProps; }; +const legendFormatter = (value: string) => ( + {value} +); + const ErrorDiagram = ({ errorData }: { errorData: Array }) => ( @@ -33,11 +37,7 @@ const ErrorDiagram = ({ errorData }: { errorData: Array }) => ( /> - ( - {value} - )} - /> + {["500", "404", "401", "400"].map((key, index) => ( ( - + - - + + diff --git a/kraken-app/kraken-app-portal/src/pages/MappingTemplatev2/UpgradePlane/index.tsx b/kraken-app/kraken-app-portal/src/pages/MappingTemplatev2/UpgradePlane/index.tsx index 85e3e034..a2f50b81 100644 --- a/kraken-app/kraken-app-portal/src/pages/MappingTemplatev2/UpgradePlane/index.tsx +++ b/kraken-app/kraken-app-portal/src/pages/MappingTemplatev2/UpgradePlane/index.tsx @@ -107,7 +107,6 @@ export default function UpgradePlane() { }, }); - // @TODO: Available environment name for now: stage | production const stageEnvId = useMemo(() => findEnvByName("stage")?.id, [findEnvByName]); const productEnvId = useMemo( () => findEnvByName("production")?.id, diff --git a/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/RightSide/index.tsx b/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/RightSide/index.tsx index d67208ce..9c7db8b3 100644 --- a/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/RightSide/index.tsx +++ b/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/RightSide/index.tsx @@ -5,14 +5,14 @@ import SelectAPI from "../SelectAPI"; import SelectResponseProperty from "../SelectResponseProperty"; import SonataResponseMapping from "../SonataResponseMapping"; -type RightSideProps = { +type RightSideProps = Readonly<{ rightSide: number; jsonSpec: any; method: string; handleSelectSonataProp: (value: any) => void; handleSelectSellerProp: (value: any) => void; isRequiredMapping: boolean; -}; +}>; export function RightSide({ rightSide,