Skip to content

Commit

Permalink
fix(core): fix typo in attach
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
CodyJasonBennett committed May 31, 2022
1 parent 053a34c commit 1b93a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const detach = (parent: Instance, child: Instance) => {

if (typeof child.attach === 'string') {
const { target, key } = resolveAttach(parent, child.attach)
target[key] = child.__r3f.previousAttach
target[key] = child.__previousAttach
} else {
child.__previousAttach?.(parent, child)
}
Expand Down

0 comments on commit 1b93a08

Please sign in to comment.