Skip to content

Commit 997c50c

Browse files
committed
Fixed error
1 parent 4ad6512 commit 997c50c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details

app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/edit/[id]/details/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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 */}

0 commit comments

Comments
 (0)