Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c0fff3c

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: fixing error
1 parent 036c5f1 commit c0fff3c

File tree

1 file changed

+1
-1
lines changed
  • src/features/dashboard/components/ApiTokenTable

1 file changed

+1
-1
lines changed

src/features/dashboard/components/ApiTokenTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const ApiTokenTable = (props: HTMLAttributes<HTMLDivElement>) => {
4646
useEffect(() => {
4747
const row_element_exists = table_row_ref !== null;
4848
if (tokens.length > 0 && row_element_exists) {
49-
const row_height = table_row_ref.current.clientHeight;
49+
const row_height = table_row_ref.current?.clientHeight;
5050
setTableHeight(row_height * tokens.length);
5151
}
5252
}, [tokens, table_row_ref]);

0 commit comments

Comments
 (0)