Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78283cf

Browse files
authored
fix: add keys to createCtas elements (#4362)
1 parentd165d76 commit78283cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎site/src/components/RuntimeErrorState/createCtas.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ const ReloadAppButton = (): ReactElement => {
4848
* createCtas generates an array of buttons to be used with our error boundary UI
4949
*/
5050
exportconstcreateCtas=(codeBlock:string[]):ReactElement[]=>{
51-
// REMARK: we don't have to worry about key order changing
52-
// eslint-disable-next-line react/jsx-key
53-
return[<CopyStackButtontext={codeBlock.join("\r\n")}/>,<ReloadAppButton/>]
51+
return[
52+
<CopyStackButtonkey="copy-stack-btn"text={codeBlock.join("\r\n")}/>,
53+
<ReloadAppButtonkey="reload-app-btn"/>,
54+
]
5455
}
5556

5657
constuseStyles=makeStyles((theme)=>({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp