@@ -45,14 +45,14 @@ export default function NotificationsSubCard({ user }: any) {
|
||||
|
||||
let n: any = [];
|
||||
if (data) {
|
||||
n = data.map((i: any) => ({
|
||||
label: i.name,
|
||||
value: i.id,
|
||||
}));
|
||||
n = data
|
||||
.filter((n: any) => n.active)
|
||||
.map((i: any) => ({
|
||||
label: i.name,
|
||||
value: i.id,
|
||||
}));
|
||||
}
|
||||
|
||||
console.log(n);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Card className="p-3 w-lg">
|
||||
|
||||
Reference in New Issue
Block a user