Skip to content

Commit

Permalink
optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
BipanKishore committed May 8, 2024
1 parent 58813de commit 5b1ee5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/context/resizable-panes-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const getResizableContext = (
}

const getPaneSizeStyle = (id: string) => {
const size = findById(panesList, id)?.getSize()
const size = findById(panesList, id).getSize()
return getSizeStyle(vertical, size as number)
}

Expand Down Expand Up @@ -247,6 +247,7 @@ export const getResizableContext = (
const restore = () => {
restoreFn(resizable.items)
onNewView()
storage.setStorage(resizable)
emitResizeStop()
emitChangeVisibility()
}
Expand Down

0 comments on commit 5b1ee5d

Please sign in to comment.