From 97c0face2f246b9534c1a1c30bc402976924ad02 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Oct 2023 00:38:02 +0200 Subject: [PATCH] PinDMs: Fix canary crash --- src/plugins/pinDms/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/pinDms/index.tsx b/src/plugins/pinDms/index.tsx index 02fe332d..a7406aa4 100644 --- a/src/plugins/pinDms/index.tsx +++ b/src/plugins/pinDms/index.tsx @@ -81,7 +81,7 @@ export default definePlugin({ // array with the count, or an empty array. Due to spreading, only in the former // case will an element be added to the outer array // Thanks for the fix, Strencher! - replace: "$&...$1.props.pinCount," + replace: "$&...($1.props.pinCount ?? [])," }, { // Patch renderSection (renders the header) to set the text to "Pinned DMs" instead of "Direct Messages"