mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-14 01:48:45 +00:00
add optional chaining for precaution
This commit is contained in:
@@ -158,7 +158,7 @@ export default function useCommonEditPageFunctions(dependencies) {
|
||||
};
|
||||
|
||||
const handleSplitMove = ()=>{
|
||||
editorRef.current.update();
|
||||
editorRef.current?.update();
|
||||
};
|
||||
|
||||
const handleBrewChange = (field)=>(value, subfield)=>{ //'text', 'style', 'snippets', 'metadata'
|
||||
|
||||
Reference in New Issue
Block a user