Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BBB Dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Zohren
BBB Dashboard
Commits
6fea5c3a
Commit
6fea5c3a
authored
4 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
make roomList more data safe
parent
9d01b894
No related branches found
No related tags found
No related merge requests found
Pipeline
#8011
passed with warnings
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
online_status_list/src/RoomOnlineListPanel.svelte
+3
-1
3 additions, 1 deletion
online_status_list/src/RoomOnlineListPanel.svelte
with
3 additions
and
1 deletion
online_status_list/src/RoomOnlineListPanel.svelte
+
3
−
1
View file @
6fea5c3a
...
...
@@ -16,11 +16,13 @@ interface Room {
export
let
title
:
string
;
export
let
rooms
:
Room
[];
$
:
safeRoomList
=
Array
.
isArray
(
rooms
)
?
rooms
:
[];
</script>
<nav
class=
"panel is-primary"
>
<p
class=
"panel-heading"
>
{
title
}
</p>
{
#each
rooms
as
room
(
room
.
url
)
}
{
#each
safeRoomList
as
room
(
room
.
url
)
}
<SingleRoomPanelBlock
{...
room
}
/>
{
/each
}
</nav>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment