Skip to content

Commit

Permalink
fix: remove scrollHeights
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestThePoet committed Mar 24, 2024
1 parent 59974cc commit 18b8b63
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/pages/Home/components/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ const importIr = (
vmContainer.add(newVm);

const irLines = splitLines(irString);
vmContainer.at(vmContainer.length - 1).loadAndDecodeNewInstructions(irLines);
vmContainer
.at(vmContainer.length - 1)
.loadAndDecodeNewInstructions(irLines);

dispatch(
addVmPageState({
Expand All @@ -109,10 +111,6 @@ const importIr = (
currentLineNumber: newVm.currentLineNumber,
shouldIndicateCurrentLineNumber: false,

scrollHeights: {
vmInspector: 0
},

localVariableTablePageIndex: 1
})
);
Expand Down Expand Up @@ -314,10 +312,6 @@ const SideBar: React.FC<SideBarProps> = (props: SideBarProps) => {
currentLineNumber: newVm.currentLineNumber,
shouldIndicateCurrentLineNumber: false,

scrollHeights: {
vmInspector: 0
},

localVariableTablePageIndex: 1
})
);
Expand Down

0 comments on commit 18b8b63

Please sign in to comment.