chore: fix super session history

This commit is contained in:
Aman Harwara
2023-07-26 15:50:12 +05:30
parent 47a36c4cbd
commit 51cb14c010
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ export const ReadonlyNoteContent = ({
) : content.noteType === NoteType.Super ? (
<ErrorBoundary>
<div className="w-full flex-grow overflow-hidden overflow-y-auto">
<BlocksEditorComposer readonly initialValue={content.text}>
<BlocksEditorComposer readonly initialValue={content.text} key={content.text}>
<BlocksEditor
readonly
className="blocks-editor relative h-full resize-none p-4 text-base focus:shadow-none focus:outline-none"

View File

@@ -43,7 +43,7 @@ const HistoryModalFooter = ({ dismissModal, noteHistoryController }: Props) => {
return (
<div className="min-h-6 flex flex-shrink-0 flex-wrap items-center gap-2.5 border-t border-solid border-border px-2.5 py-2 md:justify-between">
<Button className="py-1.35" label="Close" onClick={dismissModal} />
{selectedRevision && (
{selectedRevision && selectedEntry && (
<>
{(selectedEntry as RevisionMetadata).uuid && (
<Button className="md:ml-auto" onClick={deleteSelectedRevision}>