Skip to content

Commit

Permalink
Allow related_to anywhere #2508
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Feb 28, 2025
1 parent a6441a3 commit aafcd41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Editor/EditRelationships.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@

<script>
import { capitalize,isEqual } from "lodash"
import { mapActions, mapGetters,mapState } from "vuex"
import { mapActions, mapGetters, mapState } from "vuex"
import Icon from "@/components/Icon";
import RecordStatus from "@/components/Records/Shared/RecordStatus";
Expand Down
3 changes: 2 additions & 1 deletion src/store/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ let editorStore = {
// Whereas this is what determines what available links can be shown when adding a new one.
else {
if (options.target.registry === relation.target ||
options.target.type === relation.target) {
options.target.type === relation.target ||
relation.relation === 'related_to') {
output.push(relation);
seen.push(label);
}
Expand Down

0 comments on commit aafcd41

Please sign in to comment.