This commit is contained in:
Daniel Lugo 2020-02-13 14:21:07 -04:00
parent b43d45e9e1
commit e05991b171

View file

@ -156,9 +156,8 @@ const react = () => {
const gun = require('../../Mediator').getGun()
const newPubToFeed = {
...getPubToFeed()
}
/** @type {Feeds} */
const newPubToFeed = {}
for (const [pub, inc] of Object.entries(pubToIncoming)) {
/**
@ -195,7 +194,10 @@ const react = () => {
}
if (Object.keys(newPubToFeed).length > 0) {
setPubToFeed(newPubToFeed)
setPubToFeed({
...getPubToFeed(),
...newPubToFeed
})
}
}