mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-04 02:01:58 -05:00
Simplified fetchLabels to return an array of label names (#16842)
refs https://github.com/TryGhost/Team/issues/3182
This commit is contained in:
parent
1139ed541b
commit
2526bd627e
1 changed files with 1 additions and 6 deletions
|
@ -252,12 +252,7 @@ export default class KoenigLexicalEditor extends Component {
|
||||||
const fetchLabels = async () => {
|
const fetchLabels = async () => {
|
||||||
const labels = await this.fetchLabelsTask.perform();
|
const labels = await this.fetchLabelsTask.perform();
|
||||||
|
|
||||||
return labels.toArray().map((label) => {
|
return labels.map(label => label.name);
|
||||||
return {
|
|
||||||
id: label.id,
|
|
||||||
name: label.name
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const defaultCardConfig = {
|
const defaultCardConfig = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue