From a4cadc03d861f785c6624d7684a3790547a315af Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Wed, 6 Sep 2023 23:51:18 +0700 Subject: [PATCH] viewRaw: dont add context menu to guild folders (#1708) --- src/plugins/viewRaw.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/viewRaw.tsx b/src/plugins/viewRaw.tsx index d9d1a448..6614ea8e 100644 --- a/src/plugins/viewRaw.tsx +++ b/src/plugins/viewRaw.tsx @@ -119,6 +119,7 @@ const settings = definePluginSettings({ function MakeContextCallback(name: string) { const callback: NavContextMenuPatchCallback = (children, props) => () => { + if (name === "Guild" && !props.guild) return; const lastChild = children.at(-1); if (lastChild?.key === "developer-actions") { const p = lastChild.props;