Skip to content

Commit c67383c

Browse files
authored
fix(masterdata): do not show no method error if billing API is down (#1401)
1 parent 70c43ec commit c67383c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugins/masterdata_cockpit/app/views/masterdata_cockpit/project_masterdata/_project_details.html.haml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
.col-sm-4.details-label
44
Name
55
.col-sm-8.details-value
6-
= @project.name
6+
= @project&.name
77
.row
88
.col-sm-4.details-label
99
Description
1010
.col-sm-8.details-value
1111
=# use active project here because at the moment masterdata api supports max. 255 chars
1212
%span.description
13-
- if @project.description
14-
= @project.description
15-
- else
16-
\-
13+
= @project&.description || '-'

0 commit comments

Comments
 (0)