Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24dd403

Browse files
committed
Activity card only link to library if section_id available
1 parent a876e00 commit 24dd403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/interfaces/default/current_activity_instance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
parent_href = page('info', data['parent_rating_key'])
7575
grandparent_href = page('info', data['grandparent_rating_key'])
7676
user_href = page('user', data['user_id']) if data['user_id'] else '#'
77-
library_href = page('library', data['section_id'])
77+
library_href = page('library', data['section_id']) if data['section_id'] else '#'
7878
season = short_season(data['parent_title'])
7979
%>
8080
<div class="dashboard-activity-instance" id="activity-instance-${sk}" data-key="${sk}" data-id="${data['session_id']}"

0 commit comments

Comments
 (0)