Skip to content

Commit

Permalink
fix(Price add): set origin_tag to unknown if empty. ref #1247
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jan 10, 2025
1 parent 2eb0cf7 commit df3144c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ function extraPriceCreateOrUpdateFiltering(data) {
delete filteredData.product
if ((typeof filteredData.origins_tags === 'string') && (filteredData.origins_tags.length)) {
filteredData.origins_tags = [filteredData.origins_tags]
} else {
filteredData.origins_tags = ['en:unknown']
}
if (filteredData.labels_tags.length == 0) {
filteredData.labels_tags = null
Expand Down

0 comments on commit df3144c

Please sign in to comment.