Questify: Fix Crashing
This commit is contained in:
parent
1f0faa7fba
commit
aeba0b79e9
1 changed files with 1 additions and 1 deletions
|
|
@ -1694,7 +1694,7 @@ export default definePlugin({
|
|||
// Run Questify's sort function every time due to hook requirements but return
|
||||
// early if not applicable. If the sort method is set to "Questify", replace the
|
||||
// Quests with the sorted ones. Also, setup a trigger to rerender the memo.
|
||||
match: /(?<=userStatus\?.claimedAt.{0,50})(\i.useMemo\(\(\)=>{)(?=if\(0===(\i).length\))/,
|
||||
match: /(?<=\.filters\),.{0,30})(\i.useMemo\(\(\)=>{)(?=if\(0===(\i).length\))/,
|
||||
replace: "questRerenderTrigger=$self.useQuestRerender(),questifySorted=$self.sortQuests($2,arguments[1].sortMethod!==\"questify\"),$1if(arguments[1].sortMethod===\"questify\"){$2=questifySorted;};"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue