Skip to content

Commit

Permalink
fix(event): unset id when id's string "0"
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Apr 1, 2024
1 parent e97c5a0 commit db639d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/engine-chronocat-event/src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ async function parseElements(
ctx.chronocat.uix.add(m.textElement!.atNtUid, m.textElement!.atUid)

let id: string | undefined = m.textElement!.atUid
if (id === '0') id = undefined
id ||= ctx.chronocat.uix.getUin(m.textElement!.atNtUid)

const name = m.textElement!.content.slice(1)
Expand Down

0 comments on commit db639d2

Please sign in to comment.