Web: Files: EmbeddingPanel: fixed onChangeHeight

This commit is contained in:
Nikita Gopienko 2024-06-06 15:02:52 +03:00
parent 876bc05116
commit ca0b76b46a

View File

@ -199,7 +199,7 @@ const EmbeddingPanelComponent = (props: EmbeddingPanelProps) => {
const onChangeHeight = (e: React.ChangeEvent<HTMLInputElement>) => {
setHeightValue(e.target.value);
setConfig((config) => {
return { ...config, width: `${e.target.value}${heightDimension.label}` };
return { ...config, height: `${e.target.value}${heightDimension.label}` };
});
};