From e2fd90bdc25e014496cf1dc5f096b004ac29e78b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 24 Jun 2021 13:48:53 +0530 Subject: [PATCH] Remove Segment import Signed-off-by: RMidhunSuresh --- src/domain/session/RoomGridViewModel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/domain/session/RoomGridViewModel.js b/src/domain/session/RoomGridViewModel.js index 6dbc5ea4..dddc603b 100644 --- a/src/domain/session/RoomGridViewModel.js +++ b/src/domain/session/RoomGridViewModel.js @@ -81,9 +81,9 @@ export class RoomGridViewModel extends ViewModel { _switchToRoom(roomId) { const detailsShown = !!this.navigation.path.get("details")?.value; let path = this.navigation.path.until("rooms"); - path = path.with(new Segment("room", roomId)); + path = path.with(this.navigation.segment("room", roomId)); if (detailsShown) { - path = path.with(new Segment("details", true)); + path = path.with(this.navigation.segment("details", true)); } this.navigation.applyPath(path); } @@ -189,7 +189,6 @@ export class RoomGridViewModel extends ViewModel { import {createNavigation} from "../navigation/index.js"; import {ObservableValue} from "../../observable/ObservableValue.js"; -import { Segment } from "../navigation/Navigation.js"; export function tests() { class RoomVMMock {