seeding initial office rooms and showing them

This commit is contained in:
Arjun Patel
2022-01-22 14:39:01 -08:00
parent 45dbb7c170
commit 9c64e80b08
8 changed files with 272 additions and 3 deletions
-2
View File
@@ -55,8 +55,6 @@ export default function Announcements() {
updatedOrNewAnn.id = change.doc.id;
if (change.type === "added" || change.type === "modified") {
console.log("New or updated announcement: ", updatedOrNewAnn);
// update rooms map
setAnnMap((prevMap) => {
return new Map(prevMap.set(updatedOrNewAnn.id, updatedOrNewAnn));