Skip to content

Commit 2d8e4c6

Browse files
committed
Fix: l.trim() is not a fn
1 parent 400e4a2 commit 2d8e4c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/transformer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const domSeatsToJSON = (seatsFromStore: ISeat[] | Record<string, ISeat>) => {
1818
x: +seat.attr(square ? "x" : "cx"),
1919
y: +seat.attr(square ? "y" : "cy"),
2020
label:
21-
document.getElementById(`${seat.attr("id")}-label`)?.textContent?.trim() ?? seatsFromStore[id]?.label?.trim(),
21+
document.getElementById(`${seat.attr("id")}-label`)?.textContent?.trim() ??
22+
seatsFromStore[id]?.label?.toString()?.trim(),
2223
status: seat.attr(dataAttributes.status),
2324
category: seat.attr(dataAttributes.category),
2425
square,

0 commit comments

Comments
 (0)