Skip to content

Commit 02be1e3

Browse files
Copilot7underlines
andcommitted
Optimize Criteria constructor call for single entity fetch
Co-authored-by: 7underlines <17121556+7underlines@users.noreply.github.com>
1 parent c719acf commit 02be1e3

File tree

1 file changed

+1
-1
lines changed
  • src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list

1 file changed

+1
-1
lines changed

src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default {
122122

123123
try {
124124
// Create criteria to load the full blog entry with all associations
125-
const criteria = new Criteria(1, 1);
125+
const criteria = new Criteria();
126126
const sortCriteria = Criteria.sort('position', 'ASC', true);
127127

128128
criteria

0 commit comments

Comments
 (0)