Commit 3d8face 1 parent 7406c5e commit 3d8face Copy full SHA for 3d8face
File tree 2 files changed +1
-22
lines changed
2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ export default class RequestBox extends Component {
79
79
} ;
80
80
81
81
submitAction = async ( ) => {
82
- console . log ( "submitAction" , this . state . request ) ;
83
82
if ( ! _ . isEmpty ( this . state . request ) ) {
84
83
let response = await this . props . submitInfo (
85
84
this . prepPrefetch ( ) ,
@@ -92,7 +91,7 @@ export default class RequestBox extends Component {
92
91
93
92
console . log ( "submitAction response" , response ) ;
94
93
95
- if ( ! ! response . systemActions && response . systemActions . length > 0 ) {
94
+ if ( ! ! response && ! ! response . systemActions && response . systemActions . length > 0 ) {
96
95
console . log ( "submitAction systemActions" , response . systemActions ) ;
97
96
98
97
// find a resource in the system actions with the CRD coverage information extension
Original file line number Diff line number Diff line change @@ -135,26 +135,6 @@ export default class RequestBuilder extends Component {
135
135
} ) ;
136
136
this . consoleLog ( "Fetching response from " + cdsUrl , types . info ) ;
137
137
try {
138
- // fetch(cdsUrl, {
139
- // method: "POST",
140
- // headers: myHeaders,
141
- // body: JSON.stringify(json_request)
142
- // }).then(response => {
143
- // this.consoleLog("Received response", types.info);
144
- // response.json().then((fhirResponse) => {
145
- // console.log(fhirResponse);
146
- // if (fhirResponse && fhirResponse.status) {
147
- // this.consoleLog("Server returned status "
148
- // + fhirResponse.status + ": "
149
- // + fhirResponse.error, types.error);
150
- // this.consoleLog(fhirResponse.message, types.error);
151
- // } else {
152
- // this.setState({ response: fhirResponse });
153
- // }
154
- // this.setState({ loading: false });
155
- // })
156
- // }).catch(() => this.consoleLog("No response recieved from the server", types.error));
157
-
158
138
try {
159
139
let response = await fetch ( cdsUrl , {
160
140
method : "POST" ,
You can’t perform that action at this time.
0 commit comments