Skip to content

Commit

Permalink
chore: optimize husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Jun 23, 2022
1 parent 0a48d24 commit 5c3f629
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
[[ "$(uname -a)" = *"MINGW64"* ]] && exit 0
[ -n "$CI" ] && exit 0
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && npx git-cz --hook || true
1 change: 0 additions & 1 deletion src/_util/callBoth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default function callBoth<T extends (...args: any[]) => any>(...fns: T[])
lastResult = fn(...args);
}
}

return lastResult;
}) as T;
}
2 changes: 1 addition & 1 deletion src/table/BaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const BaseTable = forwardRef((props: TBaseTableProps, ref) => {
const getTFootHeight = () => {
if (!tableElmRef.current) return;
const timer = setTimeout(() => {
const height = tableElmRef.current.querySelector('tfoot')?.getBoundingClientRect().height;
const height = tableElmRef.current?.querySelector('tfoot')?.getBoundingClientRect().height;
setTableFootHeight(height);
clearTimeout(timer);
});
Expand Down

0 comments on commit 5c3f629

Please sign in to comment.