- {roleId === 1 && (
+
- )}
+
{roleId === 1 && (
toggleWilayah("polres")}
/>
{wilayahPublish.polres && (
{
+ if (
+ updatedUrl.includes(domain) &&
+ !updatedUrl.includes(`${domain}/in`)
+ ) {
+ updatedUrl = updatedUrl.replace(domain, `${domain}/in`);
+ }
+ });
if (detailData && detailData.id === Number(id)) {
setDetail({
id: detailData.id,
@@ -41,7 +52,7 @@ export default function DetailContentBlast() {
subject: detailData.subject,
sendTime: detailData.sendTime,
thumbnail: detailData.thumbnail,
- contentUrl: detailData.contentUrl,
+ contentUrl: updatedUrl,
});
} else {
setNotFound(true);
diff --git a/components/form/broadcast/content-blast-form.tsx b/components/form/broadcast/content-blast-form.tsx
index d7cac489..402cc9c7 100644
--- a/components/form/broadcast/content-blast-form.tsx
+++ b/components/form/broadcast/content-blast-form.tsx
@@ -221,6 +221,7 @@ export default function ContentBlast(props: { type: string }) {
Subject