Skip to content

Commit

Permalink
fixed error on image item
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Medesan committed Jun 2, 2021
1 parent 74b9524 commit 109fd58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ProgressWorkflow.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Pluggable } from '@plone/volto/components/manage/Pluggable';
import { getBaseUrl } from '@plone/volto/helpers';
import PropTypes from 'prop-types';
import React, { useEffect, useRef, useState } from 'react';
import { Portal } from 'react-portal';
Expand All @@ -7,8 +8,6 @@ import { doesNodeContainClick } from 'semantic-ui-react/dist/commonjs/lib';
import { getWorkflowProgress } from './actions';
import './less/editor.less';

import { getBaseUrl } from '@plone/volto/helpers';

/**
* @summary The React component that shows progress tracking of selected content.
*/
Expand Down Expand Up @@ -95,8 +94,9 @@ const ProgressWorkflow = (props) => {
if (
contentId &&
contentId.indexOf(basePathname) >= 0 &&
basePathname !== '/' && // wihout this there will be a flicker for going back to home ('/' in included in all api paths)
workflowProgress?.result &&
basePathname !== '/' && // wihout this there will be a flicker for going back to home ('/' is included in all api paths)
workflowProgress?.result?.steps &&
workflowProgress.result.steps.length > 0 &&
!workflowProgress.workflow?.error &&
Array.isArray(workflowProgress?.result?.steps)
) {
Expand Down

0 comments on commit 109fd58

Please sign in to comment.