Skip to content

Commit

Permalink
fix(project): jump to modify room page rather than modify periodic ro…
Browse files Browse the repository at this point in the history
…om page (#1406)
  • Loading branch information
Cheerego7 authored Mar 3, 2022
1 parent 9e32914 commit c251991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
5 changes: 0 additions & 5 deletions desktop/renderer-app/src/pages/RoomDetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ export const RoomDetailPage = observer<{}>(function RoomDetailPage() {
periodicUUID: roomInfo.periodicUUID,
});
}
if (roomInfo.periodicUUID) {
pushHistory(RouteNameType.ModifyPeriodicRoomPage, {
periodicUUID: roomInfo.periodicUUID,
});
}
}
}

Expand Down
15 changes: 4 additions & 11 deletions web/flat-web/src/pages/RoomDetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,10 @@ export const RoomDetailPage = observer(function RoomDetailPage() {

function jumpToModifyRoom(): void {
if (roomInfo) {
if (roomInfo.roomUUID) {
pushHistory(RouteNameType.ModifyOrdinaryRoomPage, {
roomUUID: roomInfo.roomUUID,
periodicUUID: roomInfo.periodicUUID,
});
}
if (roomInfo.periodicUUID) {
pushHistory(RouteNameType.ModifyPeriodicRoomPage, {
periodicUUID: roomInfo.periodicUUID,
});
}
pushHistory(RouteNameType.ModifyOrdinaryRoomPage, {
roomUUID: roomInfo.roomUUID,
periodicUUID: roomInfo.periodicUUID,
});
}
}

Expand Down

0 comments on commit c251991

Please sign in to comment.