bug fixed

This commit is contained in:
daniel31x13
2023-11-25 03:27:34 -05:00
parent b88fa446be
commit af80614b3a
8 changed files with 24 additions and 15 deletions
+4 -3
View File
@@ -44,6 +44,7 @@ export default function AddOrEditLink({
activeLink || {
name: "",
url: "",
type: "",
description: "",
tags: [],
screenshotPath: "",
@@ -139,10 +140,10 @@ export default function AddOrEditLink({
{method === "UPDATE" ? (
<div
className="text-gray-500 dark:text-gray-300 break-all w-full flex gap-2"
title={link.url}
title={link.url || ""}
>
<FontAwesomeIcon icon={faLink} className="w-6 h-6" />
<Link href={link.url} target="_blank" className="w-full">
<Link href={link.url || ""} target="_blank" className="w-full">
{link.url}
</Link>
</div>
@@ -153,7 +154,7 @@ export default function AddOrEditLink({
<div className="sm:col-span-3 col-span-5">
<p className="text-black dark:text-white mb-2">Address (URL)</p>
<TextInput
value={link.url}
value={link.url || ""}
onChange={(e) => setLink({ ...link, url: e.target.value })}
placeholder="e.g. http://example.com/"
/>