mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
offer need issue fixed
This commit is contained in:
parent
ddc5809787
commit
cf33c035f5
@ -135,7 +135,7 @@ export function OverlayItemProfileSettings() {
|
||||
let needs_updates: Array<any> = [];
|
||||
|
||||
needs?.map(n => {
|
||||
const existingNeed = user?.needs.find(t => t.tags_id === n.id)
|
||||
const existingNeed = item?.needs?.find(t => t.tags_id === n.id)
|
||||
existingNeed && needs_updates.push(existingNeed.id)
|
||||
!existingNeed && needs_updates.push({ items_id: item?.id, tags_id: n.id })
|
||||
!existingNeed && !tags.some(t => t.id === n.id) && addTag({ ...n, offer_or_need: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user