fix: Load window for the first time (#1095)

pull/3793/head
Edwin Betancourt 2021-08-23 17:35:26 -04:00 committed by GitHub
parent 4106cf24f9
commit d75bd43965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -339,6 +339,10 @@ export default {
return currentRecord return currentRecord
}, },
isDocumentTab() { isDocumentTab() {
if (this.isEmptyValue(this.windowMetadata)) {
return false
}
const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : 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)) { if (!this.isEmptyValue(panel)) {
return panel.isDocument return panel.isDocument