Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 833e0a4

Browse files
committed
Merge pull request #12767 from NejcZdovc/hotfix/#12766-include
Fixes publisher exclude after restart
1 parent 2268c3f commit 833e0a4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

app/browser/api/ledger.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -1164,12 +1164,17 @@ const initSynopsis = (state) => {
11641164
}
11651165

11661166
const publishers = ledgerState.getPublishers(state)
1167+
11671168
for (let item of publishers) {
11681169
const publisherKey = item[0]
1169-
excludeP(publisherKey, (unused, exclude) => {
1170-
appActions.onPublisherOptionUpdate(publisherKey, 'exclude', exclude)
1171-
savePublisherOption(publisherKey, 'exclude', exclude)
1172-
})
1170+
const publisher = item[1] || Immutable.Map()
1171+
1172+
if (!publisher.getIn(['options', 'exclude'])) {
1173+
excludeP(publisherKey, (unused, exclude) => {
1174+
appActions.onPublisherOptionUpdate(publisherKey, 'exclude', exclude)
1175+
savePublisherOption(publisherKey, 'exclude', exclude)
1176+
})
1177+
}
11731178
}
11741179

11751180
state = updatePublisherInfo(state)

0 commit comments

Comments
 (0)