fix: fixing page escalation forward form
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sabda Yagra 2026-03-30 10:14:30 +07:00
parent 4e7c9bb097
commit c32223e4a2
1 changed files with 17 additions and 4 deletions

View File

@ -262,7 +262,7 @@ export default function FormQuestionsForward() {
if (res?.data !== null) {
const rawUser = res?.data?.data?.content;
// console.log("raw user", rawUser);
console.log("raw user", rawUser);
const optionArr: Option[] = rawUser.map((option: any) => ({
id: option?.id,
@ -310,7 +310,7 @@ export default function FormQuestionsForward() {
</span>
{` `}
mengirimkan pesan untuk{` `}
<Link
{/* <Link
// href={
// detail?.feed
// ? detail?.feed?.permalink_url == undefined
@ -318,12 +318,25 @@ export default function FormQuestionsForward() {
// : detail?.feed?.permalink_url
// : ""
// }
// target="_blank"
href={detail?.feedUrl}
target="_blank"
className="font-bold"
>
{detail?.message}
</Link>
</Link> */}
{detail?.feedUrl ? (
<Link
href={detail.feedUrl}
target="_blank"
className="font-bold"
>
{detail?.message}
</Link>
) : (
<span className="font-bold text-gray-500">
{detail?.message}
</span>
)}
</p>
<p className="text-xs">
{`${new Date(detail?.createdAt).getDate()}-${