Skip to content

Commit 5bf70da

Browse files
committed
Fixes error when opening projections
1 parent 34148c6 commit 5bf70da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/containers/Projection.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ class Projection extends PureComponent {
3333
const { projectionId } = this.props;
3434
try {
3535
Promise.all([
36-
api.getProjectionIncoming({ projectionId }).then((response) => formatXML(response.text())),
37-
api.getProjectionOutgoing({ projectionId }).then((response) => formatXML(response.text())),
36+
api
37+
.getProjectionIncoming({ projectionId })
38+
.then((response) => formatXML(response.data || '')),
39+
api
40+
.getProjectionOutgoing({ projectionId })
41+
.then((response) => formatXML(response.data || '')),
3842
])
3943
.then(([incomingProjectionDocument, outgoingProjectionDocument]) => {
4044
this.setState({

0 commit comments

Comments
 (0)