From 24eb3119ed1bd854629252ffc9977b52285f9082 Mon Sep 17 00:00:00 2001 From: Martina Date: Sat, 23 Jan 2021 19:18:49 -0800 Subject: [PATCH] removed extra console log --- components/core/Application.js | 1 - components/core/SlatePreviewBlock.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/core/Application.js b/components/core/Application.js index d606a3bc..b0010d11 100644 --- a/components/core/Application.js +++ b/components/core/Application.js @@ -482,7 +482,6 @@ export default class ApplicationPage extends React.Component { }; _handleAction = (options) => { - console.log("on action"); 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 // + e.g. to display while on the Home tab diff --git a/components/core/SlatePreviewBlock.js b/components/core/SlatePreviewBlock.js index f6e84a6a..605e8997 100644 --- a/components/core/SlatePreviewBlock.js +++ b/components/core/SlatePreviewBlock.js @@ -252,7 +252,7 @@ export class SlatePreviewBlock extends React.Component { render() { let count = 0; const { objects } = this.props.slate.data; - if (objects.length > 4) { + if (objects.length >= 4) { const set = this.props.slate.data.objects.slice(0, 4); for (let object of set) { if (object.type.startsWith("image/") && !object.type.startsWith("image/svg")) {