diff --git a/client/src/app/components/KeycloakProvider.tsx b/client/src/app/components/KeycloakProvider.tsx index 70ec6918fe..daf2ed50f5 100644 --- a/client/src/app/components/KeycloakProvider.tsx +++ b/client/src/app/components/KeycloakProvider.tsx @@ -51,7 +51,6 @@ export const KeycloakProvider: React.FC = ({ initInterceptors( () => new Promise((resolve, reject) => { - console.log("intercept request!", keycloak); if (keycloak.token) { if (keycloak.refreshToken) { keycloak diff --git a/client/src/app/components/TargetCard.tsx b/client/src/app/components/TargetCard.tsx index 4411e2218e..8a78a8a972 100644 --- a/client/src/app/components/TargetCard.tsx +++ b/client/src/app/components/TargetCard.tsx @@ -68,14 +68,8 @@ export const TargetCard: React.FC = ({ }) => { const { t } = useTranslation(); const [isCardSelected, setCardSelected] = React.useState(cardSelected); - const [imageDataUrl, setImageDataUrl] = React.useState(null); - React.useEffect(() => { - const imagePath = target?.image?.id - ? `/hub/files/${target?.image.id}` - : DefaultRulesetIcon; - fetchImageAndSetDataUrl(imagePath); - }, [target]); + const [imageDataUrl, setImageDataUrl] = React.useState(null); const prevSelectedLabel = formLabels?.find((formLabel) => { @@ -127,7 +121,6 @@ export const TargetCard: React.FC = ({ console.error("There was an issue fetching the image:", error); } }; - const imagePath = target?.image?.id ? `/hub/files/${target?.image.id}` : DefaultRulesetIcon;