diff --git a/src/app/TargetSelect/TargetSelect.tsx b/src/app/TargetSelect/TargetSelect.tsx index 5ab582030..329e83785 100644 --- a/src/app/TargetSelect/TargetSelect.tsx +++ b/src/app/TargetSelect/TargetSelect.tsx @@ -94,14 +94,6 @@ export const TargetSelect: React.FunctionComponent = (props) selectNone(); } break; - case 'CHANGED': - setTargets(old => { - const filtered = _.filter(old, t => t.connectUrl !== evt.serviceRef.connectUrl); - const updated =_.unionBy(filtered, [evt.serviceRef], t => t.connectUrl); - onSelect(undefined, _.find(updated, t => t.connectUrl === selected.connectUrl), false); - return updated; - }); - break; default: notifications.danger(`Bad ${NOTIFICATION_CATEGORY} message received`, `Unknown event type ${evt.kind}`); break; @@ -198,6 +190,6 @@ export const TargetSelect: React.FunctionComponent = (props) } interface TargetDiscoveryEvent { - kind: 'LOST' | 'FOUND' | 'CHANGED'; + kind: 'LOST' | 'FOUND'; serviceRef: Target; }