From e0cbbefb412f7b8b901ca52e0021ff1fc05dac30 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Tue, 26 Apr 2022 08:21:11 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20new=20target=20navi?= =?UTF-8?q?gation=20issue=20(#1070)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue where trying to leave the new target form via the discard changes dialog would cause the user to have to refresh screen. ✅ Closes: ICU-4047 --- ui/admin/app/components/form/target/index.hbs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/admin/app/components/form/target/index.hbs b/ui/admin/app/components/form/target/index.hbs index 7f36017dd..5214f3f77 100644 --- a/ui/admin/app/components/form/target/index.hbs +++ b/ui/admin/app/components/form/target/index.hbs @@ -1,7 +1,9 @@ -{{component - (concat 'form/target/' @model.type) - model=@model - submit=@submit - cancel=@cancel - changeType=@changeType -}} \ No newline at end of file +{{#if @model.type}} + {{component + (concat 'form/target/' @model.type) + model=@model + submit=@submit + cancel=@cancel + changeType=@changeType + }} +{{/if}} \ No newline at end of file