Skip to content

Commit 3c3a96a

Browse files
authored
Merge pull request #196 from Dataport/feature/add-configuration-warning
add configuration error warning
2 parents 465a24d + d04b7fa commit 3c3a96a

File tree

1 file changed

+6
-0
lines changed
  • packages/core/src/vuePlugins

1 file changed

+6
-0
lines changed

packages/core/src/vuePlugins/vuex.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ export const makeStore = () => {
241241
}
242242
if (state.configuration[name].displayComponent) {
243243
commit('setComponents', [...components, component])
244+
245+
if (!state.configuration[name].layoutTag) {
246+
console.warn(
247+
`@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.`
248+
)
249+
}
244250
}
245251
},
246252
centerOnFeature({ rootGetters: { map } }, feature: Feature) {

0 commit comments

Comments
 (0)