bk
This commit is contained in:
parent
3d1a427dcf
commit
1e4cd71e06
5 changed files with 14 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { authedAPIRequest } from "../utils/auth";
|
||||
import { subscribe } from "../utils/streams";
|
||||
import { resetValues } from "./canvas/utils";
|
||||
import { room } from "../pages/index"
|
||||
// FIXME: This file should handle the rooms API
|
||||
// Functions may include:
|
||||
// - fetchRoomConfig (get the configuration of a room)
|
||||
|
|
@ -19,7 +20,7 @@ function setCurrentRoomConfig(cfg) {
|
|||
}
|
||||
async function getCurrentRoomConfig() {
|
||||
if (!roomConfig) {
|
||||
await fetchRoomConfig();
|
||||
await fetchRoomConfig(room);
|
||||
}
|
||||
|
||||
return roomConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue