File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/compass-connections/src/components Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ const connectionErrorActionsStyles = css({
75
75
const connectionErrorStyles = css ( {
76
76
display : 'flex' ,
77
77
flexDirection : 'column' ,
78
+ wordBreak : 'break-word' ,
78
79
} ) ;
79
80
80
81
const connectionErrorTitleStyles = css ( {
@@ -201,16 +202,15 @@ const openConnectionFailedToast = ({
201
202
onReview = {
202
203
onReviewClick
203
204
? ( ) => {
204
- if ( ! onDebugClick ) {
205
- // don't close the toast if there are two actions so that the user
206
- // can still use the other one
207
- closeToast ( `connection-status--${ failedToastId } ` ) ;
208
- }
205
+ closeToast ( `connection-status--${ failedToastId } ` ) ;
209
206
onReviewClick ( ) ;
210
207
}
211
208
: undefined
212
209
}
213
- onDebug = { onDebugClick }
210
+ onDebug = { ( ) => {
211
+ closeToast ( `connection-status--${ failedToastId } ` ) ;
212
+ onDebugClick ?.( ) ;
213
+ } }
214
214
/>
215
215
) ,
216
216
variant : 'warning' ,
You can’t perform that action at this time.
0 commit comments