mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03: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
@ -252,12 +252,7 @@ export default class KoenigLexicalEditor extends Component {
|
||||
const fetchLabels = async () => {
|
||||
const labels = await this.fetchLabelsTask.perform();
|
||||
|
||||
return labels.toArray().map((label) => {
|
||||
return {
|
||||
id: label.id,
|
||||
name: label.name
|
||||
};
|
||||
});
|
||||
return labels.map(label => label.name);
|
||||
};
|
||||
|
||||
const defaultCardConfig = {
|
||||
|
Loading…
Reference in New Issue
Block a user