Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(react): fix minor update in schema description
  • Loading branch information
topwebtek7 committed Jun 18, 2021
commit 6bb654b3aadb29a840713f7a4871e3e8b4a30d65
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function DescriptionField({ description, updatedDescription, onUp
const [showAddModal, setShowAddModal] = useState(false);

const onCloseModal = () => setShowAddModal(false);
const currentDesc: string = !!updatedDescription || updatedDescription === '' ? updatedDescription : description;
const currentDesc: string = updatedDescription || description;

const onUpdateModal = async (desc: string | null) => {
message.loading({ content: 'Updating...' });
Expand Down