File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
service-catalog/components/service-catalog-item Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ export function ServiceCatalogItem({
72
72
const errorData : ServiceRequestResponse = await response . json ( ) ;
73
73
const invalidFieldErrors = errorData . details . base ;
74
74
const missingErrorFields = invalidFieldErrors . filter (
75
- ( errorField ) => ! requestFields . some ( field => field . id === errorField . field_key )
75
+ ( errorField ) =>
76
+ ! requestFields . some ( ( field ) => field . id === errorField . field_key )
76
77
) ;
77
78
78
79
if ( missingErrorFields . length > 0 ) {
@@ -95,7 +96,7 @@ export function ServiceCatalogItem({
95
96
} ,
96
97
} ) ;
97
98
}
98
-
99
+
99
100
const updatedFields = requestFields . map ( ( field ) => {
100
101
const errorField = invalidFieldErrors . find (
101
102
( errorField ) => errorField . field_key === field . id
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import styled from "styled-components";
13
13
const StyledLink = styled ( Anchor ) `
14
14
text-decoration: underline;
15
15
display: block;
16
- margin-top: ${ props => props . theme . space . xxs } px;
16
+ margin-top: ${ ( props ) => props . theme . space . xxs } px;
17
17
` ;
18
18
19
19
export const useNotify = ( ) => {
@@ -25,12 +25,8 @@ export const useNotify = () => {
25
25
addToast ( ( { close } ) => (
26
26
< Notification type = { type } >
27
27
{ title && < Title > { title } </ Title > }
28
- { message }
29
- { link && (
30
- < StyledLink href = { link . href } >
31
- { link . text }
32
- </ StyledLink >
33
- ) }
28
+ { message }
29
+ { link && < StyledLink href = { link . href } > { link . text } </ StyledLink > }
34
30
< Close
35
31
aria-label = { t ( "cph-theme-shared.close-label" , "Close" ) }
36
32
onClick = { close }
You can’t perform that action at this time.
0 commit comments