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

Commit

Permalink
remove redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Nov 19, 2024
1 parent 2ec7ffe commit ff79708
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ import FieldDefinition from '@/components/ADempiere/FieldDefinition/index.vue'
import ProgressPercentage from '@/components/ADempiere/ContainerOptions/ProgressPercentage.vue'

// Utils and helpers Methods
import { isEmptyValue, getTypeOfValue } from '@/utils/ADempiere/valueUtils.js'
import { isEmptyValue } from '@/utils/ADempiere/valueUtils.js'
import { copyToClipboard } from '@/utils/ADempiere/coreUtils.js'
import { formatField } from '@/utils/ADempiere/valueFormat.js'
import { getImagePath } from '@/utils/ADempiere/resource'
Expand Down Expand Up @@ -194,13 +194,10 @@ export default defineComponent({
})

const displayedValue = computed(() => {
let currentValue = props.dataRow[columnName.value]
if (getTypeOfValue(currentValue) === 'OBJECT') {
currentValue = currentValue.value
}
if (props.fieldAttributes.is_encrypted) {
return '••••••••••••••••••'
}
let currentValue = props.dataRow[columnName.value]
return formatField({
value: currentValue,
currency: props.dataRow[DISPLAY_COLUMN_PREFIX + CURRENCY],
Expand Down

0 comments on commit ff79708

Please sign in to comment.