There was an error while loading. Please reload this page.
1 parent c18d5ad commit 516cd7cCopy full SHA for 516cd7c
1 file changed
src/modules/analysis/components/Messages.js
@@ -1,4 +1,4 @@
1
-import { useMemo, useState } from 'react';
+import { useState } from 'react';
2
import { observer } from 'mobx-react-lite';
3
import { Helmet } from 'react-helmet-async';
4
import styled from 'styled-components';
@@ -56,10 +56,7 @@ export const Messages = observer(
56
)
57
)].sort();
58
59
- const filteredMessages = useMemo(
60
- () => !activeCategory ? messages : messages.filter(m => m.category === activeCategory),
61
- [activeCategory, messages]
62
- );
+ const filteredMessages = !activeCategory ? messages : messages.filter(m => m.category === activeCategory);
63
64
return (
65
<>
0 commit comments