Skip to content

Commit 9f6229d

Browse files
committed
Reset recent activity indicator on settings change
1 parent f76dd1d commit 9f6229d

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

package-lock.json

Lines changed: 4 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"react-hook-form": "^7.48.2",
141141
"react-product-fruits": "^2.2.61",
142142
"react-redux": "^9.2.0",
143-
"react-router": "^7.5.1",
143+
"react-router": "^7.5.2",
144144
"react-scrollbar-size": "^5.0.0",
145145
"react-syntax-highlighter": "^15.6.1",
146146
"react-transition-group": "^4.4.5",
@@ -152,5 +152,10 @@
152152
"uuid": "^9.0.1",
153153
"zustand": "^4.5.5",
154154
"zustand-slices": "^0.3.0"
155+
},
156+
"overrides": {
157+
"react-syntax-highlighter": {
158+
"prismjs": "1.30.0"
159+
}
155160
}
156161
}

src/components/RecentActivity/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ export const RecentActivity = () => {
174174
);
175175
}, [recentActivityData.environments]);
176176

177+
useEffect(() => {
178+
if (!config.userInfo?.id && config.backendInfo?.centralize) {
179+
void toggleRecentIndicator({
180+
status: false
181+
});
182+
}
183+
}, [
184+
config.backendInfo?.centralize,
185+
config.userInfo?.id,
186+
toggleRecentIndicator
187+
]);
188+
177189
useEffect(() => {
178190
const isAnyRecentActivity = environments.some(
179191
(environment) => environment.hasRecentActivity

0 commit comments

Comments
 (0)