File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/console/src/pages/EnterpriseSso/SsoCreationModal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function SsoCreationModal({ isOpen, onClose: rawOnClose }: Props) {
7777 setError,
7878 watch,
7979 } = useForm < FormType > ( { resetOptions : { keepErrors : true } } ) ;
80- const api = useApi ( { hideErrorToast : true } ) ;
80+ const api = useApi ( { hideErrorToast : [ duplicateConnectorNameErrorCode ] } ) ;
8181
8282 const isLoading = ! data && ! error ;
8383
@@ -126,7 +126,9 @@ function SsoCreationModal({ isOpen, onClose: rawOnClose }: Props) {
126126 if ( metadata . code === duplicateConnectorNameErrorCode ) {
127127 setError ( 'connectorName' , { type : 'custom' , message : metadata . message } ) ;
128128 }
129+ return ;
129130 }
131+ throw error ;
130132 }
131133 } )
132134 ) ;
You can’t perform that action at this time.
0 commit comments