File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Parse from 'parse' ;
2
+ import encode from 'parse/lib/browser/encode' ;
2
3
import React , { Component } from 'react' ;
3
4
4
5
import BrowserCell from 'components/BrowserCell/BrowserCell.react' ;
@@ -46,7 +47,7 @@ export default class BrowserRow extends Component {
46
47
// "Parse._encoding" is responsible to convert Parse data into raw data.
47
48
// Since array and object are generic types, we want to render them the way
48
49
// they were stored in the database.
49
- attr = Parse . _encode ( obj . get ( name ) ) ;
50
+ attr = encode ( obj . get ( name ) , undefined , true ) ;
50
51
}
51
52
}
52
53
let hidden = false ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import Editor from 'dashboard/Data/Browser/Editor.react';
12
12
import EmptyState from 'components/EmptyState/EmptyState.react' ;
13
13
import Icon from 'components/Icon/Icon.react' ;
14
14
import Parse from 'parse' ;
15
+ import encode from 'parse/lib/browser/encode' ;
15
16
import React from 'react' ;
16
17
import styles from 'dashboard/Data/Browser/Browser.scss' ;
17
18
import Button from 'components/Button/Button.react' ;
@@ -198,7 +199,7 @@ export default class BrowserTable extends React.Component {
198
199
// "Parse._encoding" is responsible to convert Parse data into raw data.
199
200
// Since array and object are generic types, we want to edit them the way
200
201
// they were stored in the database.
201
- value = Parse . _encode ( obj . get ( name ) ) ;
202
+ value = encode ( obj . get ( name ) , undefined , true ) ;
202
203
} else {
203
204
value = obj . get ( name ) ;
204
205
}
You can’t perform that action at this time.
0 commit comments