Skip to content

Commit

Permalink
Merge pull request #59 from kbss-cvut/57-properties-undefined
Browse files Browse the repository at this point in the history
Fix getFormQuestionsData undefined
  • Loading branch information
blcham authored Sep 17, 2024
2 parents 631f71e + 5eb058b commit 337572b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/sform/SFormsFunctionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SFormsFunctionModal extends React.Component {

handleSubmit() {
let data =
this.refForm.current.context.getFormQuestionsData()[0][
this.refForm.current.getFormQuestionsData()[0][
"http://onto.fel.cvut.cz/ontologies/documentation/has_related_question"
];
let functionUri = "";
Expand Down
2 changes: 1 addition & 1 deletion src/components/sform/SFormsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SFormsModal extends React.Component {
handleSubmit() {
let form = this.state.selectedForm;
form["http://onto.fel.cvut.cz/ontologies/documentation/has_related_question"] =
this.refForm.current.context.getFormQuestionsData();
this.refForm.current.getFormQuestionsData();

this.setState({ isLoading: true, isLoaded: false });
Rest.updateScriptForm(this.state.moduleTypeUri, form, this.state.scriptPath).then((response) => {
Expand Down

0 comments on commit 337572b

Please sign in to comment.