Skip to content

Commit

Permalink
Merge pull request #196 from Dataport/feature/add-configuration-warning
Browse files Browse the repository at this point in the history
add configuration error warning
  • Loading branch information
warm-coolguy authored Oct 7, 2024
2 parents 465a24d + d04b7fa commit 3c3a96a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/vuePlugins/vuex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ export const makeStore = () => {
}
if (state.configuration[name].displayComponent) {
commit('setComponents', [...components, component])

if (!state.configuration[name].layoutTag) {
console.warn(
`@polar/core: Component "${name}" was registered as visible ('displayComponent' had a truthy value), but no 'layoutTag' was associated. This may be an error in configuration and will lead to the component not being visible in the UI.`
)
}
}
},
centerOnFeature({ rootGetters: { map } }, feature: Feature) {
Expand Down

0 comments on commit 3c3a96a

Please sign in to comment.