mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 11:03:23 +03:00
removed extra console log
This commit is contained in:
parent
89ca018812
commit
24eb3119ed
@ -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
|
||||||
|
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user