Skip to content

Commit

Permalink
Load related items on file type too
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Oct 3, 2018
1 parent b1d7ceb commit 2bbeae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/item.vue
Expand Up @@ -167,7 +167,8 @@ function getFieldsQuery(collection) {
fieldInfo.type.toLowerCase() === "m2o" ||
fieldInfo.type.toLowerCase() === "o2m" ||
fieldInfo.type.toLowerCase() === "m2m" ||
fieldInfo.type.toLowerCase() === "translation"
fieldInfo.type.toLowerCase() === "translation" ||
fieldInfo.type.toLowerCase() === "file"
) {
return field.endsWith(".*") ? field : field + ".*";
}
Expand Down

0 comments on commit 2bbeae7

Please sign in to comment.