Skip to content

Commit

Permalink
Fix an error when limiting link types and removing the current link t…
Browse files Browse the repository at this point in the history
…ype of a link
  • Loading branch information
engram-design committed Mar 29, 2024
1 parent 876b67b commit 0abfa6f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/web/assets/field/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"src": "field/src/js/hyper.css"
},
"field/src/js/hyper.js": {
"file": "assets/hyper-6c5e5ef6.js",
"file": "assets/hyper-182269ec.js",
"src": "field/src/js/hyper.js",
"isEntry": true,
"css": [
Expand Down
4 changes: 4 additions & 0 deletions src/web/assets/field/src/js/components/LinkBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ export default {
if (!(this.settings.linkTypes.map((linkType) => {
return linkType.handle;
}).includes(this.link.handle))) {
// Save some settings to merge in, but not all. This is a new link type after all
const oldId = this.link.id;
this.link = this.clone(this.settings.linkTypes[0]);
this.link.id = oldId;
}
},
Expand Down

0 comments on commit 0abfa6f

Please sign in to comment.