fix: handle non-array translation data before mapping buttons
This commit is contained in:
@ -324,7 +324,10 @@ export default function DepartmentDetail6() {
|
||||
}, []);
|
||||
|
||||
// buttons from translations (array)
|
||||
const buttons = t("departmentDetail6.buttons", { returnObjects: true });
|
||||
const buttons = [
|
||||
{ id: 1, title: t("departmentDetail6.buttons.1"), key: "expertise" },
|
||||
{ id: 3, title: t("departmentDetail6.buttons.3"), key: "works" },
|
||||
];
|
||||
|
||||
// card groups from translations
|
||||
const cardGroups = t("departmentDetail6.cardGroups", { returnObjects: true });
|
||||
|
||||
Reference in New Issue
Block a user