From d75bd43965336d3eae2f5dc73c597bfcd0c3f911 Mon Sep 17 00:00:00 2001 From: Edwin Betancourt Date: Mon, 23 Aug 2021 17:35:26 -0400 Subject: [PATCH] fix: Load window for the first time (#1095) --- src/views/ADempiere/Window/windowLogicComponent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/ADempiere/Window/windowLogicComponent.js b/src/views/ADempiere/Window/windowLogicComponent.js index 0b17918c..649c81bc 100644 --- a/src/views/ADempiere/Window/windowLogicComponent.js +++ b/src/views/ADempiere/Window/windowLogicComponent.js @@ -339,6 +339,10 @@ export default { return currentRecord }, isDocumentTab() { + if (this.isEmptyValue(this.windowMetadata)) { + return false + } + const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : this.$store.getters.getPanel(this.windowMetadata.currentTabUuid) if (!this.isEmptyValue(panel)) { return panel.isDocument