diff --git a/src/plugins/overrideForumDefaults/index.tsx b/src/plugins/overrideForumDefaults/index.tsx index be106ac8..a377fff5 100644 --- a/src/plugins/overrideForumDefaults/index.tsx +++ b/src/plugins/overrideForumDefaults/index.tsx @@ -36,11 +36,11 @@ export default definePlugin({ find: "getDefaultLayout(){", replacement: [ { - match: /getDefaultLayout\(\){/, + match: /}getDefaultLayout\(\){/, replace: "$&return $self.getLayout();" }, { - match: /getDefaultSortOrder\(\){/, + match: /}getDefaultSortOrder\(\){/, replace: "$&return $self.getSortOrder();" } ]