Skip to content

Commit 1823171

Browse files
committed
Merge pull request #2777 from getsentry/project-selector
Correctly show project selector on organization pages
2 parents 11bd44b + 9d921a3 commit 1823171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/templates/sentry/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</header>
129129
{% endblock %}
130130

131-
{% if organization and request.user.is_authenticated and project %}
131+
{% if organization and request.user.is_authenticated %}
132132
{% block sub-header %}
133133
<div class="sub-header">
134134
<div class="container">
@@ -143,7 +143,7 @@
143143
$(function(){
144144
React.render(React.createFactory(Sentry.ProjectSelector)({
145145
organization: {% serialize_detailed_org organization %},
146-
projectId: '{{ project.slug }}'
146+
projectId: {% if project %}'{{ project.slug }}'{% else %}null{% endif %},
147147
}), document.getElementById('blk_projectselect'));
148148
});
149149
</script>

0 commit comments

Comments
 (0)