Simplified condition

This commit is contained in:
Torkel Ödegaard 2019-02-07 09:09:59 +01:00
parent 7edc3fdd5c
commit 8b080f0511

View File

@ -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;