Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
FIX: Update how we pass values to ModalJsonSchemaEditor (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
janzenisaac committed Mar 13, 2024
1 parent c4335f3 commit 3a7db96
Showing 1 changed file with 7 additions and 4 deletions.
@@ -1,4 +1,5 @@
import { tracked } from "@glimmer/tracking";
import { hash } from "@ember/helper";
import { action } from "@ember/object";
import DButton from "discourse/components/d-button";
import ModalJsonSchemaEditor from "discourse/components/modal/json-schema-editor";
Expand Down Expand Up @@ -40,10 +41,12 @@ export default class KeyValueField extends BaseField {

{{#if this.showJsonEditorModal}}
<ModalJsonSchemaEditor
@updateValue={{this.handleValueChange}}
@value={{this.value}}
@settingName={{@label}}
@jsonSchema={{this.jsonSchema}}
@model={{hash
value=this.value
updateValue=this.handleValueChange
settingName=@label
jsonSchema=this.jsonSchema
}}
@closeModal={{this.closeModal}}
/>
{{/if}}
Expand Down

0 comments on commit 3a7db96

Please sign in to comment.