mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Automatically select the newly created room
This commit is contained in:
parent
2fc922d01f
commit
f68806cfd1
1 changed files with 12 additions and 12 deletions
|
|
@ -97,7 +97,7 @@ const Dashboard: React.FC = () => {
|
||||||
setRooms(userRooms as RoomType[]);
|
setRooms(userRooms as RoomType[]);
|
||||||
// select the first room if it exists
|
// select the first room if it exists
|
||||||
if (userRooms instanceof Array && userRooms.length > 0) {
|
if (userRooms instanceof Array && userRooms.length > 0) {
|
||||||
selectRoom(userRooms[0]);
|
selectRoom(userRooms[userRooms.length-1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const userFolders = await ApiService.getUserFolders();
|
const userFolders = await ApiService.getUserFolders();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue