Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
fix: Eslint console. (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Jun 29, 2022
1 parent c42a7d9 commit 6386cee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/store/modules/ADempiere/windowManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ const windowManager = {
* Delete Entity table
* @param {string} parentUuid
* @param {string} containerUuid
* TODO: Add suport to uuid list
*/
deleteSelectedRecordsFromWindow({
dispatch,
Expand All @@ -370,9 +371,10 @@ const windowManager = {
parentUuid,
containerUuid
}) {
const getTabSelectionsList = getters.getTabSelectionsList({ containerUuid })
const tableName = getters.getTableName(parentUuid, containerUuid)
const listRecordId = getTabSelectionsList.map(list => list[tableName + '_ID'])
const selectionsList = getters.getTabSelectionsList({ containerUuid })
const listRecordId = selectionsList.map(list => list[tableName + '_ID'])

showMessage({
message: language.t('table.dataTable.deleteSelection'),
type: 'info'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/ADempiere/dictionary/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ export const deleteRecord = {
containerUuid
})
if (isEmptyValue(selectionsRecords)) {
return false;
return false
}
store.dispatch('deleteSelectedRecordsFromWindow', {
parentUuid,
containerUuid
})
return
}

// delete record on panel
store.dispatch('deleteEntity', {
parentUuid,
Expand Down

0 comments on commit 6386cee

Please sign in to comment.