From 13dc2298697b830b06a6ee7a7bab088a4ddea0f7 Mon Sep 17 00:00:00 2001 From: David Siaw Date: Mon, 22 Jan 2024 14:52:04 +0900 Subject: [PATCH] safe nav --- app/models/backend/ecs/v2/service_stack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/backend/ecs/v2/service_stack.rb b/app/models/backend/ecs/v2/service_stack.rb index 204d70f8..d253db05 100644 --- a/app/models/backend/ecs/v2/service_stack.rb +++ b/app/models/backend/ecs/v2/service_stack.rb @@ -5,7 +5,7 @@ def build_resources deps = [] if use_alb? deps = [] - if !service.heritage.review? + if !service&.heritage&.review? deps << 'LBListenerRuleHTTP' end