Skip to content

Commit

Permalink
feat: 打印 catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Mar 27, 2024
1 parent 0bc4e47 commit b8f9b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/typography/Base/index.tsx
Expand Up @@ -204,7 +204,7 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
typeof copyConfig.text === 'function' ? await copyConfig.text() : copyConfig.text;
copy(text || String(children) || '', copyOptions);
} catch (error) {
/* empty */
console.error(error);

Check warning on line 207 in components/typography/Base/index.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check warning on line 207 in components/typography/Base/index.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check warning on line 207 in components/typography/Base/index.tsx

View check run for this annotation

Codecov / codecov/patch

components/typography/Base/index.tsx#L207

Added line #L207 was not covered by tests
}
setCopyLoading(false);
setCopied(true);
Expand Down

0 comments on commit b8f9b1b

Please sign in to comment.