Skip to content

Commit

Permalink
FAIRSPC-104 - Fix worskpace description edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Aug 5, 2024
1 parent 176dbd0 commit 5d5a548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/mercury/src/metadata/common/values/MarkdownValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import BaseInputValue from './BaseInputValue';
const MarkdownValue = props => {
// Show the editor if the user chose to edit
// or if there is no value yet
const [showEdit, setShowEdit] = useState(!props.entry.value);
const [showEdit, setShowEdit] = useState(true);

return (
<div onClick={() => setShowEdit(true)}>
{showEdit || !props.entry.value || !props.entry.value.trim() ? (
{showEdit ? (
<BaseInputValue
{...props}
autoFocus={showEdit && !!props.entry.value}
Expand Down

0 comments on commit 5d5a548

Please sign in to comment.