Skip to content

Commit

Permalink
fix(useNode): check against ELEMENT_SKIP_DRIVERS
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Apr 28, 2022
1 parent 617dfdb commit ed165f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ git stage pnpm-lock.yaml

info "Checking for errors..."

if [ -n "$(git status src --porcelain)" ]; then
if [ -n "$(git status packages --porcelain)" ]; then
npx --no-install lint-staged --quiet || exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion packages/million/drivers/useNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const useNode = (drivers: any[]): any => {
return finish(newEl);
}

if (resolvedNewVNode.flag === Flags.ELEMENT_SKIP_DRIVERS) {
if (resolvedNewVNode.flag !== Flags.ELEMENT_SKIP_DRIVERS) {
for (let i = 0; i < drivers.length; ++i) {
commit(
() => {
Expand Down

0 comments on commit ed165f5

Please sign in to comment.