mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Refactor selectedSchema naming
This commit is contained in:
parent
a9d20f759b
commit
ec2c6178f4
@ -81,20 +81,6 @@ class LocalStrapiSourceProvider implements ISourceProvider {
|
||||
throw new Error('Not able to get Schemas. Strapi instance not found');
|
||||
}
|
||||
|
||||
const selectedKeys = [
|
||||
'collectionName',
|
||||
'info',
|
||||
'options',
|
||||
'pluginOptions',
|
||||
'attributes',
|
||||
'kind',
|
||||
'modelType',
|
||||
'modelName',
|
||||
'uid',
|
||||
'plugin',
|
||||
'globalId',
|
||||
];
|
||||
|
||||
const schemas = {
|
||||
...this.strapi.contentTypes,
|
||||
...this.strapi.components,
|
||||
|
||||
@ -94,7 +94,7 @@ export const jsonDiffs = (a: unknown, b: unknown, ctx: Context = createContext()
|
||||
return diffs;
|
||||
};
|
||||
|
||||
const selectedKeys = [
|
||||
const schemaSelectedKeys = [
|
||||
'collectionName',
|
||||
'info',
|
||||
'options',
|
||||
@ -108,4 +108,4 @@ const selectedKeys = [
|
||||
'globalId',
|
||||
];
|
||||
|
||||
export const mapSchemasValues = (schemas: any) => mapValues(pick(selectedKeys), schemas);
|
||||
export const mapSchemasValues = (schemas: any) => mapValues(pick(schemaSelectedKeys), schemas);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user