update
This commit is contained in:
@@ -24,7 +24,6 @@ const Header = () => {
|
||||
// Find the Services menu item and update its submenu with API data
|
||||
const servicesIndex = baseNavigation.findIndex(item => item.title === "Services");
|
||||
if (servicesIndex !== -1 && apiServices.length > 0) {
|
||||
console.log('Replacing services with API data:', apiServices);
|
||||
baseNavigation[servicesIndex] = {
|
||||
...baseNavigation[servicesIndex],
|
||||
submenu: apiServices.map(service => ({
|
||||
@@ -37,8 +36,6 @@ const Header = () => {
|
||||
updated_at: service.updated_at
|
||||
}))
|
||||
} as any;
|
||||
} else {
|
||||
console.log('Using static services data. API services:', apiServices.length, 'Services index:', servicesIndex);
|
||||
}
|
||||
|
||||
return baseNavigation;
|
||||
|
||||
Reference in New Issue
Block a user