Skip to content

Commit 43e0291

Browse files
File changes
1 parent 005b2d2 commit 43e0291

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/PredictiveAnalytics.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export default function PredictiveAnalytics() {
2727
queryFn: () => base44.entities.UserProfile.filter({}),
2828
enabled: isAdmin
2929
});
30+
31+
// Null-safe data
32+
const safeInsights = insights || [];
3033

3134
const predictChurnMutation = useMutation({
3235
mutationFn: async (userEmail) => {

0 commit comments

Comments
 (0)