Skip to content

Commit

Permalink
Bug fix: the 'missing plugins' message was not so silent after all. F…
Browse files Browse the repository at this point in the history
…ixed. Shows only if it detects something.
  • Loading branch information
jacobwod committed Aug 22, 2023
1 parent b10b50a commit 89cdefa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions new-client/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,12 @@ class App extends React.PureComponent {
});

// Display a silent info message in console
console.log(
`The map configuration contains unavailable plugins: ${unsupportedToolsFoundInMapConfig.join(
", "
)}. Please check your map config and buildConfig.json. `
);
unsupportedToolsFoundInMapConfig.length > 0 &&
console.info(
`The map configuration contains unavailable plugins: ${unsupportedToolsFoundInMapConfig.join(
", "
)}. Please check your map config and buildConfig.json. `
);
};
/**
* @summary Initiates the wanted analytics model (if any).
Expand Down

0 comments on commit 89cdefa

Please sign in to comment.