mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Check prev name is string
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
11d411c9a9
commit
53fc6a7af9
@ -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 New Issue
Block a user