Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Aug 17, 2020
1 parent 8d13b1a commit 2ca3973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/theme/Widgets/RelationWidget.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import cx from 'classnames';
import { settings } from '~/config';
import { flattenToAppURL } from '@plone/volto/helpers';

export const RelationWidget = ({ value, children, className }) => {
if (!value) {
return '';
}

const url = (value['@id'] || '#').replace(settings.apiPath, '');
const url = flattenToAppURL(value['@id'] || '#');
const state = value.review_state || '';
const description = value.description || '';
const type = value['@type'] || '';
Expand Down

0 comments on commit 2ca3973

Please sign in to comment.