mirror of
https://github.com/strapi/strapi.git
synced 2025-12-14 08:44:16 +00:00
Remove media from sortable fields
This commit is contained in:
parent
639c631985
commit
def2e6b8e3
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
||||||
const NON_SORTABLES = ['group', 'json', 'relation'];
|
const NON_SORTABLES = ['group', 'json', 'relation', 'media'];
|
||||||
|
|
||||||
const isListable = (schema, name) => {
|
const isListable = (schema, name) => {
|
||||||
return isSortable(schema, name) && schema.attributes[name].type != 'password';
|
return isSortable(schema, name) && schema.attributes[name].type != 'password';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user