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