From 3c7d3e2669df904d0c2a7917d2be00f62c82749d Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Thu, 10 Jun 2021 16:15:57 -0400 Subject: [PATCH] fix open window (#908) Co-authored-by: elsiosanchez --- src/views/ADempiere/Window/windowLogicComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }