From 351a5b877fa4d6f0e6e79d7a03a5899be79cdded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20M=C3=BCller?= Date: Mon, 13 May 2024 22:16:05 +0200 Subject: [PATCH] refactor: comment out console warnings --- src/GeomapPanel.tsx | 4 ++-- src/editor/LayerEditor.tsx | 2 +- src/gazetteer/gazetteer.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GeomapPanel.tsx b/src/GeomapPanel.tsx index e9bb67a..f22618d 100644 --- a/src/GeomapPanel.tsx +++ b/src/GeomapPanel.tsx @@ -137,7 +137,7 @@ export class GeomapPanel extends Component { let urlString: string | undefined = undefined; try { - console.warn("Currently only one link (the 1st one) is processed."); + // console.warn("Currently only one link (the 1st one) is processed."); // Interpolate url urlString = this.props.replaceVariables(this.props.fieldConfig.defaults.links![0].url, // dataFrame.fields[0].config.links![0].url @@ -427,7 +427,7 @@ export class GeomapPanel extends Component { for (const overlay of layers) { const item = geomapLayerRegistry.getIfExists(overlay.type); if (!item) { - console.warn('unknown layer type: ', overlay); + // console.warn('unknown layer type: ', overlay); continue; // TODO -- panel warning? } diff --git a/src/editor/LayerEditor.tsx b/src/editor/LayerEditor.tsx index 5aa49c3..a0a49c8 100644 --- a/src/editor/LayerEditor.tsx +++ b/src/editor/LayerEditor.tsx @@ -265,7 +265,7 @@ export const LayerEditor: FC = ({ options, onChange, data, fil onChange={(v) => { const layer = geomapLayerRegistry.getIfExists(v.value); if (!layer) { - console.warn('layer does not exist', v); + // console.warn('layer does not exist', v); return; } diff --git a/src/gazetteer/gazetteer.ts b/src/gazetteer/gazetteer.ts index 92d1bcc..ba16c81 100644 --- a/src/gazetteer/gazetteer.ts +++ b/src/gazetteer/gazetteer.ts @@ -55,7 +55,7 @@ export async function getGazetteer(path?: string): Promise { const data = await getBackendSrv().get(path!); lookup = loadGazetteer(path, data); } catch (err) { - console.warn('Error loading placename lookup', path, err); + // console.warn('Error loading placename lookup', path, err); lookup = { path, error: 'Error loading URL',