Fix card render

This commit is contained in:
Elio Struyf
2022-06-11 20:00:03 +02:00
parent e695bad1c6
commit 844971cdd9
2 changed files with 13 additions and 1 deletions
+6
View File
@@ -1,5 +1,11 @@
# Change Log
## [7.3.3] - 2022-06-11
### 🐞 Fixes
- Card render when taxonomy is not an array value
## [7.3.2] - 2022-06-01
### 🐞 Fixes
@@ -30,7 +30,13 @@ export const Item: React.FunctionComponent<IItemProps> = ({ fmFilePath, date, ti
}
const tagField = settings.dashboardState.contents.tags;
return pageData[tagField] || [];
const tagsValue = pageData[tagField] || [];
if (Array.isArray(tagsValue)) {
return tagsValue;
}
return [tagsValue];
}, [settings, pageData]);
if (view === DashboardViewType.Grid) {