Skip to content

Commit

Permalink
Merge pull request #1546 from thehyve/FAIRSPC-104_workspace-editor
Browse files Browse the repository at this point in the history
FAIRSPC-104 - Fix workspace description edition
  • Loading branch information
ewelinagr authored Aug 7, 2024
2 parents d70af79 + 5d5a548 commit 1b3746e
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 1b3746e

Please sign in to comment.