Remove unnecessary optimistic update

This commit is contained in:
Max Goodhart
2020-06-18 21:32:03 -07:00
parent 6bded73711
commit 0344ab1096

View File

@@ -62,8 +62,6 @@ function App({ wsEndpoint }) {
} else { } else {
newSpaceIdxMap.delete(idx) newSpaceIdxMap.delete(idx)
} }
setSpaceIdxMap(newSpaceIdxMap)
const views = Array.from(newSpaceIdxMap, ([spaceIdx, streamId]) => [ const views = Array.from(newSpaceIdxMap, ([spaceIdx, streamId]) => [
spaceIdx, spaceIdx,
streamData.find((d) => d._id === streamId)?.Link, streamData.find((d) => d._id === streamId)?.Link,