mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 01:11:19 +02:00
#564 - only pass strings to the taxonomy dashboard
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
# Change Log
|
||||
|
||||
## [8.5.0] - 2023-xx-xx
|
||||
|
||||
### ✨ New features
|
||||
|
||||
### 🎨 Enhancements
|
||||
|
||||
### ⚡️ Optimizations
|
||||
|
||||
### 🐞 Fixes
|
||||
|
||||
- [#564](https://github.com/estruyf/vscode-front-matter/issues/564): Fix to only pass strings to the taxonomy dashboard
|
||||
|
||||
## [8.4.0] - 2023-04-03 - [Release notes](https://beta.frontmatter.codes/updates/v8.4.0)
|
||||
|
||||
### 🧪 Experimental features
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
"type": "string",
|
||||
"name": "year",
|
||||
"title": "Year",
|
||||
"default": "2022"
|
||||
"default": "{{year}}"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
|
||||
@@ -42,6 +42,9 @@ export const TaxonomyManager: React.FunctionComponent<ITaxonomyManagerProps> = (
|
||||
crntItems = data.customTaxonomy.find((c) => c.id === taxonomy)?.options || [];
|
||||
}
|
||||
|
||||
// Only allow string values
|
||||
crntItems = crntItems.filter((i) => typeof i === 'string');
|
||||
|
||||
// Alphabetically sort the items
|
||||
crntItems = Object.assign([], crntItems).sort((a: string, b: string) => {
|
||||
a = a || '';
|
||||
|
||||
Reference in New Issue
Block a user