From f2479e1987304fc7064de4b1f5e72320f958edd7 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 14 Nov 2018 11:17:10 -0500 Subject: Prevents empty button in jobs empty state Returns `null` instead of an empty object to make sure Vue doesn't render the button --- app/assets/javascripts/jobs/store/getters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/assets/javascripts/jobs/store/getters.js b/app/assets/javascripts/jobs/store/getters.js index d440b2c9ef1..35e92b0b5d9 100644 --- a/app/assets/javascripts/jobs/store/getters.js +++ b/app/assets/javascripts/jobs/store/getters.js @@ -42,7 +42,7 @@ export const emptyStateIllustration = state => (state.job && state.job.status && state.job.status.illustration) || {}; export const emptyStateAction = state => - (state.job && state.job.status && state.job.status.action) || {}; + (state.job && state.job.status && state.job.status.action) || null; export const isScrollingDown = state => isScrolledToBottom() && !state.isTraceComplete; -- cgit v1.2.1