We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e0bf9 commit 9e3cd0eCopy full SHA for 9e3cd0e
packages/scrollycoding/src/focus.tsx
@@ -103,9 +103,8 @@ function useEditorStep(
103
): [number, EditorStep] {
104
// we merge the editor state from the step with the changes
105
// requested by the Focus
106
+ const { stepIndex, editorStep } = useStepData()
107
return React.useMemo(() => {
- const { stepIndex, editorStep } = useStepData()
108
-
109
const fileName = file || editorStep.northPanel.active
110
const fileIndex = editorStep.files.findIndex(
111
f => f.name === fileName
0 commit comments