File tree Expand file tree Collapse file tree
app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ export default function AIModelDetailsPage() {
145145 const SAVE_SUCCESS_TOAST_ID = 'ai-model-details-save-success' ;
146146 const SAVE_ERROR_TOAST_ID = 'ai-model-details-save-error' ;
147147 const AI_MODEL_VALIDATION_TOAST_ID = 'ai-model-details-validation-toast' ;
148+ const OPEN_ACCESS_REQUIRED_TOAST_ID = SAVE_SUCCESS_TOAST_ID ;
148149 const isValidHttpUrl = ( value : string ) => {
149150 try {
150151 const parsed = new URL ( value ) ;
@@ -325,13 +326,8 @@ export default function AIModelDetailsPage() {
325326 }
326327
327328 if ( ! isValidHttpUrl ( trimmedWebsite ) ) {
328- < < << << < HEAD
329- toast ( 'Please enter a valid URL that includes https.' , {
330- id : OPEN_ACCESS_REQUIRED_TOAST_ID ,
331- = === ===
332329 toast ( 'Please enter a valid URL that includes http or https.' , {
333330 id : AI_MODEL_VALIDATION_TOAST_ID ,
334- > >>> >>> dev
335331 } ) ;
336332 return ;
337333 }
@@ -445,7 +441,6 @@ export default function AIModelDetailsPage() {
445441 </ div >
446442 ) ;
447443 }
448- const OPEN_ACCESS_REQUIRED_TOAST_ID = SAVE_SUCCESS_TOAST_ID ;
449444 return (
450445 < div className = "flex flex-col gap-4 py-6" >
451446 { /* Model Type & Domain - side by side */ }
You can’t perform that action at this time.
0 commit comments