Skip to content

Commit

Permalink
refactor(Statement): fix typo in Statement component props
Browse files Browse the repository at this point in the history
- Correct prop name from 'orgin' to 'origin' in Statement.vue

Why it worked?

Statement was a special vue component that renders a 'meta component'. When it does not have a `origin` property but the real selected component has a `origin` property, the real selected component will receive the `origin` property from Statement's parent Block. Keeping `origin` property here is a lot cleaner.
  • Loading branch information
MrCoder committed Nov 28, 2024
1 parent 140975d commit 2d86699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import Comment from "../../../../../Comment/Comment";
export default {
name: "statement",
props: ["orgin", "context", "number", "collapsed", "inheritFromOccurrence"],
props: ["origin", "context", "number", "collapsed", "inheritFromOccurrence"],
computed: {
comment: function () {
return this.context.getComment() ? this.context.getComment() : "";
Expand Down

0 comments on commit 2d86699

Please sign in to comment.