Fix double-logic for retrieving system collections in related-collection-select (#14255)

This commit is contained in:
Addison Elliott
2022-07-02 14:39:39 -05:00
committed by GitHub
parent c28aadc9c3
commit b91d840020

View File

@@ -90,15 +90,7 @@ export default defineComponent({
);
});
const systemCollections = computed(() => {
return orderBy(
collectionsStore.crudSafeSystemCollections.filter((collection) => {
return collection.collection.startsWith('directus_') === true;
}),
['collection'],
['asc']
);
});
const systemCollections = collectionsStore.crudSafeSystemCollections;
return { t, collectionExists, availableCollections, systemCollections };
},