Skip to content

Commit

Permalink
Comment known issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 29, 2024
1 parent 1de1503 commit a2527c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/viser/client/src/ControlPanel/GuiState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ export function useGuiState(initialServer: string) {
set((state) => {
const guiConfig = state.guiConfigFromUuid[id];
if (guiConfig == undefined) {
console.error("Tried to remove non-existent component", id);
// TODO: this will currently happen when GUI elements are removed
// and then a new client connects. Needs to be revisited.
console.warn("(OK) Tried to remove non-existent component", id);
return;
}
delete state.guiUuidSetFromContainerUuid[guiConfig.container_uuid]![
Expand Down

0 comments on commit a2527c6

Please sign in to comment.