Skip to content

Commit 2253d42

Browse files
committed
fix(Mappings): Fix mappable()
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent cf56c72 commit 2253d42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/Mappings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ export default class Mappings {
101101
}
102102

103103
static mappable(mappingsSnapshot: MappingSnapshot, item1: TItem<TItemLocation>, item2: TItem<TItemLocation>) : boolean {
104-
if (Mappings.mapId(mappingsSnapshot, item1, item2.location) === item2.id) {
104+
if (String(Mappings.mapId(mappingsSnapshot, item1, item2.location)) === String(item2.id)) {
105105
return true
106106
}
107-
if (Mappings.mapId(mappingsSnapshot, item2, item1.location) === item1.id) {
107+
if (String(Mappings.mapId(mappingsSnapshot, item2, item1.location)) === String(item1.id)) {
108108
return true
109109
}
110110
return false

0 commit comments

Comments
 (0)