From 2fc7aa5e2b56369fadbc315ac22cf66783c14f95 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 27 Oct 2016 17:51:05 +0200 Subject: [PATCH] templates/settings/club: Use "readonly" helper This makes sure we don't try to set "account.club.id" when "account.club" isn't set. --- ember/app/templates/settings/club.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ember/app/templates/settings/club.hbs b/ember/app/templates/settings/club.hbs index 55f9bdab63..1694e6d001 100644 --- a/ember/app/templates/settings/club.hbs +++ b/ember/app/templates/settings/club.hbs @@ -1,4 +1,4 @@ {{#settings-page title=(t "change-club")}} - {{settings-panels/choose-club clubs=model.clubs clubId=account.club.id}} + {{settings-panels/choose-club clubs=model.clubs clubId=(readonly account.club.id)}} {{settings-panels/register-club}} {{/settings-page}}