Skip to content

Commit

Permalink
Use HasHiddenFields mixin, like the other publish forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Dec 17, 2024
1 parent c0318e9 commit c05a5ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/js/components/structures/PageEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@
</template>

<script>
import HasHiddenFields from "../publish/HasHiddenFields";
export default {
mixins: [
HasHiddenFields,
],
props: {
id: String,
entry: String,
Expand Down Expand Up @@ -186,9 +192,9 @@ export default {
this.$axios.post(postUrl, {
type: this.type,
values: this.values
values: this.visibleValues
}).then(response => {
this.$emit('submitted', this.values);
this.$emit('submitted', this.visibleValues);
}).catch(e => {
this.validating = false;
if (e.response && e.response.status === 422) {
Expand Down

0 comments on commit c05a5ca

Please sign in to comment.