Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 8b5d14f

Browse files
committed
Fix warnings
Signed-off-by: Tilman Vatteroth <[email protected]>
1 parent cb3070f commit 8b5d14f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/editor-page/metadata-editor/metadata-editor.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export interface SelectMetadataOptions<T> {
3939
export const MetadataEditor: React.FC<MetadataEditorProps> = ({ show, onHide }) => {
4040
const { t } = useTranslation()
4141
const yamlMetadata = useSelector((state: ApplicationState) => state.noteDetails.frontmatter)
42-
const noteDetails = useSelector((state: ApplicationState) => state.noteDetails.markdownContent)
4342
/*const [yamlMetadata, setNoteFrontmatter] = useState<Omit<YAMLMetaData, 'opengraph'>>({
4443
title: "Test Title",
4544
description: "Test Description\nwith two lines",

src/components/editor-page/metadata-editor/string-metadata-textarea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { MetadataInputFieldProps } from './metadata-editor'
1010
export const StringMetadataTextarea: React.FC<MetadataInputFieldProps<string>> = ({ frontmatterKey, content, onContentChange }) => {
1111
const onChange = useCallback((event: React.ChangeEvent<HTMLTextAreaElement>) => {
1212
onContentChange({ [frontmatterKey]: event.currentTarget.value })
13-
}, [onContentChange])
13+
}, [frontmatterKey, onContentChange])
1414

1515
return (
1616
<textarea

0 commit comments

Comments
 (0)