mirror of
https://github.com/strapi/strapi.git
synced 2025-12-11 15:04:33 +00:00
Fix morph type detection
This commit is contained in:
parent
531977f9da
commit
dde36c88f1
@ -203,7 +203,9 @@ const mappers = {
|
||||
relation({ uid, attribute }) {
|
||||
const { relation, target } = attribute;
|
||||
|
||||
if (relation.includes('morph') | relation.includes('Morph')) {
|
||||
const isMorphRelation = relation.toLowerCase().includes('morph');
|
||||
|
||||
if (isMorphRelation) {
|
||||
return [
|
||||
'RelationAttribute',
|
||||
[factory.createStringLiteral(uid, true), factory.createStringLiteral(relation, true)],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user