Merge pull request #29 from kaermorchen/remove-get-sortable-attributes

Removed getSortableAttributes
This commit is contained in:
Stanislav Romanov 2022-10-27 08:00:19 +03:00 committed by GitHub
commit 2966384e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(),
});