mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fixing default logo in new topic
This commit is contained in:
parent
dec1a208ea
commit
e8902492d4
@ -28,7 +28,13 @@ export function useSelectItem(item, selected, markup) {
|
||||
}, [selected, item]);
|
||||
|
||||
useEffect(() => {
|
||||
updateState({ logo: card.actions.getCardImageUrl(item.id) });
|
||||
const contact = card.state.cards.get(item.id);
|
||||
if (contact?.data?.cardProfile?.imageSet) {
|
||||
updateState({ logo: card.actions.getCardImageUrl(item.id) });
|
||||
}
|
||||
else {
|
||||
updateState({ logo: null });
|
||||
}
|
||||
}, [card, item]);
|
||||
|
||||
const actions = {
|
||||
|
Loading…
Reference in New Issue
Block a user