Update the wanted section for missing and cutoff unmet

(cherry picked from commit 9b4ff657af41e67aeb5866ee3056f1a8f2a901ea)
pull/4813/head
Bogdan 6 months ago
parent d27b062d6a
commit 563db9231e

@ -266,7 +266,7 @@ class SignalRConnector extends Component {
handleWantedCutoff = (body) => { handleWantedCutoff = (body) => {
if (body.action === 'updated') { if (body.action === 'updated') {
this.props.dispatchUpdateItem({ this.props.dispatchUpdateItem({
section: 'cutoffUnmet', section: 'wanted.cutoffUnmet',
updateOnly: true, updateOnly: true,
...body.resource ...body.resource
}); });
@ -276,7 +276,7 @@ class SignalRConnector extends Component {
handleWantedMissing = (body) => { handleWantedMissing = (body) => {
if (body.action === 'updated') { if (body.action === 'updated') {
this.props.dispatchUpdateItem({ this.props.dispatchUpdateItem({
section: 'missing', section: 'wanted.missing',
updateOnly: true, updateOnly: true,
...body.resource ...body.resource
}); });

Loading…
Cancel
Save