Skip to content

Commit

Permalink
fix: removed searchModel from headless cms model fields text
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyJackson85 committed Jul 7, 2020
1 parent ab1a250 commit de1b0b6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/api-headless-cms/src/content/plugins/modelFields/text.ts
Expand Up @@ -13,16 +13,6 @@ const plugin: CmsModelFieldToCommodoFieldPlugin = {
context
})
})(model);
},
searchModel({ model, field, validation }) {
// Searching multiple-value fields is not supported.
if (field.multipleValues) {
return;
}

withFields({
[field.fieldId]: string({ validation })
})(model);
}
};

Expand Down

0 comments on commit de1b0b6

Please sign in to comment.