forked from mystiq/hydrogen-web
Check prev name is string
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
11d411c9a9
commit
53fc6a7af9
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export class Disambiguator {
|
||||||
|
|
||||||
_handlePreviousName(vm) {
|
_handlePreviousName(vm) {
|
||||||
const previousName = vm.previousName;
|
const previousName = vm.previousName;
|
||||||
if (!previousName) { return; }
|
if (typeof previousName !== "string") { return; }
|
||||||
const value = this._map.get(previousName);
|
const value = this._map.get(previousName);
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
this._unDisambiguate(vm, value);
|
this._unDisambiguate(vm, value);
|
||||||
|
|
Loading…
Reference in a new issue