GraphEditorToggle: Remove unecessary sheet access

This commit is contained in:
Cole Lawrence 2022-08-01 10:15:50 -04:00
parent 63056c5a58
commit a0994051d6

View file

@ -52,7 +52,6 @@ const GraphEditorToggle: React.FC<{
}> = ({layoutP}) => { }> = ({layoutP}) => {
const isOpen = useVal(layoutP.graphEditorDims.isOpen) const isOpen = useVal(layoutP.graphEditorDims.isOpen)
const toggle = useCallback(() => { const toggle = useCallback(() => {
const sheet = val(layoutP.sheet)
const isOpen = val(layoutP.graphEditorDims.isOpen) const isOpen = val(layoutP.graphEditorDims.isOpen)
getStudio()!.transaction(({stateEditors}) => { getStudio()!.transaction(({stateEditors}) => {
stateEditors.studio.historic.panels.sequenceEditor.graphEditor.setIsOpen({ stateEditors.studio.historic.panels.sequenceEditor.graphEditor.setIsOpen({