i want to fix this problem
i tried every thing :p
Tabs.map(tab => {
Lessons.filter(lesson => lesson.section_id === undefined && lesson.tab_id === tab.id).map(lesson => {
this.state.items.push(
{
id: lesson.id,
slug: lesson.slug
}
);
});
Sections.filter(section => section.tab_id === tab.id).map(section => {
Lessons.filter(lesson => lesson.section_id === section.id).map(lesson => {
this.state.items.push(
{
id: lesson.id,
slug: lesson.slug
}
);
});
});
});
Line 31: Expected to return a value in arrow function array-callback-return
Line 32: Expected to return a value in arrow function array-callback-return
Line 40: Expected to return a value in arrow function array-callback-return
Line 41: Expected to return a value in arrow function array-callback-return
Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before.