diff --git a/src/views/ADempiere/Window/windowLogicComponent.js b/src/views/ADempiere/Window/windowLogicComponent.js index 146d1d15..1b2c4a6e 100644 --- a/src/views/ADempiere/Window/windowLogicComponent.js +++ b/src/views/ADempiere/Window/windowLogicComponent.js @@ -337,7 +337,7 @@ export default { return currentRecord }, isDocumentTab() { - const panel = this.$store.getters.getPanel(this.windowMetadata.currentTabUuid) + const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : this.$store.getters.getPanel(this.windowMetadata.currentTabUuid) if (!this.isEmptyValue(panel)) { return panel.isDocument } @@ -345,7 +345,7 @@ export default { return this.windowMetadata.firstTab.isDocument }, isWorkflowBarStatus() { - const panel = this.$store.getters.getPanel(this.windowMetadata.currentTabUuid) + const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : this.$store.getters.getPanel(this.windowMetadata.currentTabUuid) if (!this.isEmptyValue(panel) && this.isDocumentTab && !this.isNewRecord) { return true }