From 1422c5da334ff9ca663d7f35bf3147dd9f1d3d0c Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 25 Nov 2023 21:25:01 +0800 Subject: [PATCH] Disable Switch post menu if no post instance yet --- src/pages/status.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 5fb3aea8..952afb60 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -1100,7 +1100,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { Experimental { const statusURL = getInstanceStatusURL(heroStatus.url); if (statusURL) { @@ -1112,7 +1112,15 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { > - Switch to post's instance ({postInstance}) + Switch to post's instance + {postInstance ? ( + <> + {' '} + ({postInstance}) + + ) : ( + '' + )}