From 8341da64a33627d93b1bafd02bc1759e810a7efe Mon Sep 17 00:00:00 2001 From: evlist Date: Mon, 31 Oct 2022 15:08:50 +0100 Subject: [PATCH] Making a property optional --- src/App.tsx | 3 +-- src/components/map/Map.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5f75b8a..2c5e58b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,10 +36,9 @@ const App: React.FC = () => ( diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 2c7f77f..e361775 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -8,7 +8,7 @@ import { lon2tile, lat2tile } from '../../lib/geo'; export interface MapProperties { scope: MapScope; - numberOfTiledLayers: number; + numberOfTiledLayers?: number; } /**