fix: join copied commands without a space
This commit is contained in:
parent
5e5c7c4c7a
commit
17d477bf0f
@ -24,9 +24,7 @@ export default function Code({ isCopyable, children, className }: CodeProps) {
|
||||
type="button"
|
||||
className="bottom-0 right-0 absolute"
|
||||
onClick={async (event) => {
|
||||
const text = Array.isArray(children)
|
||||
? children.join(' ')
|
||||
: children;
|
||||
const text = Array.isArray(children) ? children.join('') : children;
|
||||
|
||||
const svgs = event.currentTarget.querySelectorAll('svg');
|
||||
for (const svg of svgs) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user