Skip to content

Commit

Permalink
refactor: comment out console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-mu committed May 13, 2024
1 parent 6156376 commit 351a5b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/GeomapPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class GeomapPanel extends Component<Props, State> {

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
Expand Down Expand Up @@ -427,7 +427,7 @@ export class GeomapPanel extends Component<Props, State> {
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?
}

Expand Down
2 changes: 1 addition & 1 deletion src/editor/LayerEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const LayerEditor: FC<LayerEditorProps> = ({ 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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/gazetteer/gazetteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function getGazetteer(path?: string): Promise<Gazetteer> {
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',
Expand Down

0 comments on commit 351a5b8

Please sign in to comment.