From 8b080f051127fe5ffe0a88f129ede102b7ccc043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 7 Feb 2019 09:09:59 +0100 Subject: [PATCH] Simplified condition --- public/app/features/dashboard/services/DashboardSrv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/services/DashboardSrv.ts b/public/app/features/dashboard/services/DashboardSrv.ts index 72e0a2e3c07..eccb1df9e43 100644 --- a/public/app/features/dashboard/services/DashboardSrv.ts +++ b/public/app/features/dashboard/services/DashboardSrv.ts @@ -60,7 +60,7 @@ export class DashboardSrv { delete urlParams.edit; } - if (options.panelId !== undefined) { + if (options.panelId || options.panelId === 0) { urlParams.panelId = options.panelId; } else { delete urlParams.panelId;