adapt-authoring-content 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ContentModule.js +1 -1
- package/package.json +1 -1
package/lib/ContentModule.js
CHANGED
|
@@ -275,7 +275,7 @@ class ContentModule extends AbstractApiModule {
|
|
|
275
275
|
}
|
|
276
276
|
return Promise.all(siblings.map(async (s, i) => {
|
|
277
277
|
const _sortOrder = i + 1
|
|
278
|
-
if (s._sortOrder !== _sortOrder) super.update({ _id: s._id }, { _sortOrder })
|
|
278
|
+
if (s._sortOrder !== _sortOrder) return super.update({ _id: s._id }, { _sortOrder })
|
|
279
279
|
}))
|
|
280
280
|
}
|
|
281
281
|
|