mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-07 09:55:43 -04:00
fix(frontend): make note details in redux optional
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
118f158ad1
commit
6698450461
50 changed files with 278 additions and 135 deletions
|
@ -22,6 +22,11 @@ export const DocumentInfobar: React.FC = () => {
|
|||
|
||||
// TODO Check permissions ("writability") of note and show edit link depending on that.
|
||||
const linkTitle = useTranslatedText('views.readOnly.editNote')
|
||||
|
||||
if (noteDetails === null) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={`d-flex flex-row my-3 ${styles['document-infobar']}`}>
|
||||
<div className={'col-md'}> </div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue