From 53fc6a7af9caeebf4dc8f363d05200f6b6ec5793 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 2 Jul 2021 16:00:38 +0530 Subject: [PATCH] Check prev name is string Signed-off-by: RMidhunSuresh --- src/domain/session/rightpanel/disambiguator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/rightpanel/disambiguator.js b/src/domain/session/rightpanel/disambiguator.js index 44acc733..a387a790 100644 --- a/src/domain/session/rightpanel/disambiguator.js +++ b/src/domain/session/rightpanel/disambiguator.js @@ -19,7 +19,7 @@ export class Disambiguator { _handlePreviousName(vm) { const previousName = vm.previousName; - if (!previousName) { return; } + if (typeof previousName !== "string") { return; } const value = this._map.get(previousName); if (Array.isArray(value)) { this._unDisambiguate(vm, value);