removed extra console log

This commit is contained in:
Martina 2021-01-23 19:18:49 -08:00
parent 89ca018812
commit 24eb3119ed
2 changed files with 1 additions and 2 deletions

View File

@ -482,7 +482,6 @@ export default class ApplicationPage extends React.Component {
}; };
_handleAction = (options) => { _handleAction = (options) => {
console.log("on action");
if (options.type === "NAVIGATE") { if (options.type === "NAVIGATE") {
// NOTE(martina): The `scene` property is only necessary when you need to display a component different from the one corresponding to the tab it appears in // NOTE(martina): The `scene` property is only necessary when you need to display a component different from the one corresponding to the tab it appears in
// + e.g. to display <SceneProfile/> while on the Home tab // + e.g. to display <SceneProfile/> while on the Home tab

View File

@ -252,7 +252,7 @@ export class SlatePreviewBlock extends React.Component {
render() { render() {
let count = 0; let count = 0;
const { objects } = this.props.slate.data; const { objects } = this.props.slate.data;
if (objects.length > 4) { if (objects.length >= 4) {
const set = this.props.slate.data.objects.slice(0, 4); const set = this.props.slate.data.objects.slice(0, 4);
for (let object of set) { for (let object of set) {
if (object.type.startsWith("image/") && !object.type.startsWith("image/svg")) { if (object.type.startsWith("image/") && !object.type.startsWith("image/svg")) {