Skip to content

Commit

Permalink
fix: WF document action entity and record key. (adempiere#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Aug 31, 2022
1 parent 28f8548 commit 2ddee87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/ADempiere/Window/DocumentWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export default defineComponent({
})
const additionalOptions = ref({})
function loaDocument(params) {
if (isEmptyValue(recordUuid.value)) {
function loaDocument() {
if (isEmptyValue(recordUuid.value) || recordUuid.value === 'create-new') {
return
}
store.dispatch('listDocumentActionStatus', {
Expand All @@ -205,7 +205,7 @@ export default defineComponent({
}
watch(recordUuid, (newValue, oldValue) => {
if (newValue !== oldValue && !isEmptyValue(newValue)) {
if (newValue !== oldValue && !isEmptyValue(newValue) && newValue !== 'create-new') {
loaDocument()
store.dispatch('listDocumentStatus', {
tableName: referencesManager.value.getTableName(),
Expand Down

0 comments on commit 2ddee87

Please sign in to comment.