12
common/resources/client/workspace/active-workspace-id.ts
Executable file
12
common/resources/client/workspace/active-workspace-id.ts
Executable file
@@ -0,0 +1,12 @@
|
||||
// store this in a separate file, to avoid importing query client and axios in pixie
|
||||
|
||||
let activeWorkspaceId = 0;
|
||||
|
||||
// for access outside react
|
||||
export function getActiveWorkspaceId() {
|
||||
return activeWorkspaceId;
|
||||
}
|
||||
|
||||
export function setActiveWorkspaceId(id: number) {
|
||||
activeWorkspaceId = id;
|
||||
}
|
||||
Reference in New Issue
Block a user