Skip to content

Commit

Permalink
PATCH: fix(form): make sure image viewpoints are always comes last
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Jul 22, 2022
1 parent f54e541 commit eaf6a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/bcf-topic-form/BcfTopicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default {
if (viewpointsToUpdate.value.length === 0) {
// If topic has no viewpoints yet make sure 3D viewpoints
// comes first in the list of viewpoints to create.
viewpointsToCreate.value.sort((v1, v2) => v1.order - v2.order);
viewpointsToCreate.value.sort((v1, v2) => (v1.order ?? Infinity) - (v2.order ?? Infinity));
}
if (props.bcfTopicObjects) {
Expand Down

0 comments on commit eaf6a46

Please sign in to comment.