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 {
newSpaceIdxMap.delete(idx)
}
setSpaceIdxMap(newSpaceIdxMap)
const views = Array.from(newSpaceIdxMap, ([spaceIdx, streamId]) => [
spaceIdx,
streamData.find((d) => d._id === streamId)?.Link,