Removed getSortableAttributes

This commit is contained in:
Stanislav Romanov 2022-10-27 07:25:14 +03:00
parent 970d49d62b
commit 7facfcd3e8
2 changed files with 1 additions and 6 deletions

View file

@ -31,11 +31,6 @@ export default class Index {
};
}
// TODO: replace to getSetting
getSortableAttributes() {
return query(`${this.path}/settings/sortable-attributes`);
}
getStats() {
return query(`${this.path}/stats`);
}

View file

@ -68,7 +68,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route {
index,
searchSchema,
data: index.search(options),
sortableAttributes: index.getSortableAttributes(),
sortableAttributes: index.getSetting('sortable-attributes'),
displayedAttributes: index.getSetting('displayed-attributes'),
stats: index.getStats(),
});