Fix dropdown values for custom attributes

This commit is contained in:
Fayaz Ahmed 2022-05-05 13:37:33 +05:30
parent a0f05101ad
commit 2ffc7d4607

View file

@ -352,8 +352,8 @@ export default {
getConditionDropdownValues(type) { getConditionDropdownValues(type) {
const statusFilters = this.$t('CHAT_LIST.CHAT_STATUS_FILTER_ITEMS'); const statusFilters = this.$t('CHAT_LIST.CHAT_STATUS_FILTER_ITEMS');
const allCustomAttributes = this.$store.getters[ const allCustomAttributes = this.$store.getters[
'attributes/getAttributesByModel' 'attributes/getAttributes'
](this.attributeModel); ];
const isCustomAttributeCheckbox = allCustomAttributes.find(attr => { const isCustomAttributeCheckbox = allCustomAttributes.find(attr => {
return ( return (
@ -361,7 +361,6 @@ export default {
attr.attribute_display_type === 'checkbox' attr.attribute_display_type === 'checkbox'
); );
}); });
if (isCustomAttributeCheckbox) { if (isCustomAttributeCheckbox) {
return [ return [
{ {