From 44db8ec2d91bd2adb5e76ed461703c821d94e51c Mon Sep 17 00:00:00 2001 From: bartwr Date: Tue, 19 Nov 2024 00:03:44 +0100 Subject: [PATCH] Remove console log --- .github/workflows/nextjs.yml | 3 --- app/components/EditObject/EditObject.tsx | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 5f5821c..ed74736 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -91,6 +91,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - env: - NEXT_PUBLIC_IMBOR_TOKEN: ${{env.NEXT_PUBLIC_IMBOR_TOKEN}} - NEXT_PUBLIC_MAPTILER_API_KEY: ${{env.NEXT_PUBLIC_MAPTILER_API_KEY}} diff --git a/app/components/EditObject/EditObject.tsx b/app/components/EditObject/EditObject.tsx index 75272c5..6b141cd 100644 --- a/app/components/EditObject/EditObject.tsx +++ b/app/components/EditObject/EditObject.tsx @@ -122,7 +122,6 @@ const EditObject = () => { const geometryClickedCallback = async (e: any) => { // Get clicked object data const object: any = getObject(null, e.detail.uuid); - console.log('object', object) // If no object info was found: Stop executing if(! object) return; // Make edit form visible @@ -346,7 +345,7 @@ const EditObject = () => { const getGeoClass = (objectType: URL): boolean | string => { // Filter geoClasses on objectType const foundGeoClass = geoClasses.filter((x: any) => { - return x.classURI.value === objectType; + return x.classURI?.value === objectType; }) if(objectType === 'Wegvak' || objectType === 'Halteplaats') { return 'polygon';