Skip to content

Commit

Permalink
Remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
bartwr committed Nov 18, 2024
1 parent 31baa0c commit b9fb3cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_IMBOR_TOKEN: ${{env.NEXT_PUBLIC_IMBOR_TOKEN}}
NEXT_PUBLIC_MAPTILER_API_KEY: ${{env.NEXT_PUBLIC_MAPTILER_API_KEY}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create .env file
run: echo "NEXT_PUBLIC_IMBOR_TOKEN=${{ env.NEXT_PUBLIC_IMBOR_TOKEN }}" > .env
- name: Detect package manager
id: detect-package-manager
run: |
Expand Down Expand Up @@ -91,6 +96,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}}
3 changes: 1 addition & 2 deletions app/components/EditObject/EditObject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit b9fb3cb

Please sign in to comment.