diff --git a/components/core/SlateLayout.js b/components/core/SlateLayout.js index 6322ce1f..f3b11d8d 100644 --- a/components/core/SlateLayout.js +++ b/components/core/SlateLayout.js @@ -1098,17 +1098,6 @@ export class SlateLayout extends React.Component { let unit = this.state.unit; return (
- {this.props.isOwner ? ( this.state.editing ? (
+ {this.props.mobile ? ( {actions} {objects && objects.length ? ( - this.props.mobile ? ( - + - ) : ( -
- this._handleSave(null, null, null, false, preview)} items={objects} + fileNames={layouts && layouts.ver === "2.0" ? layouts.fileNames : false} onSelect={this._handleSelect} - defaultLayout={layouts && layouts.ver === "2.0" ? layouts.defaultLayout : true} - onAction={this.props.onAction} /> -
- ) + ) : ( +
+ this._handleSave(null, null, null, false, preview)} + items={objects} + onSelect={this._handleSelect} + defaultLayout={layouts && layouts.ver === "2.0" ? layouts.defaultLayout : true} + onAction={this.props.onAction} + /> +
+ )} + ) : isOwner ? (