parent
f79f346c94
commit
e0fee8cb25
1 changed files with 10 additions and 1 deletions
|
@ -10,7 +10,16 @@ if (!memo.homepageData) {
|
|||
}
|
||||
|
||||
const getHomepageJsonV1 = () => {
|
||||
return memo.homepageData || {};
|
||||
if (!memo.homepageData) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const v1 = {};
|
||||
const homepageKeys = Object.keys(memo.homepageData);
|
||||
homepageKeys.forEach((hp) => {
|
||||
v1[hp] = memo.homepageData[hp].categories;
|
||||
});
|
||||
return v1;
|
||||
};
|
||||
|
||||
const getHomepageJsonV2 = () => {
|
||||
|
|
Loading…
Reference in a new issue