Skip to content

Commit

Permalink
Handle frozen case only in auto-append mode
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Mar 6, 2024
1 parent 456bde2 commit 975fcd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/webview/components/memory-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ export class MemoryTable extends React.PureComponent<MemoryTableProps, MemoryTab
if (prevProps.memory !== undefined && prevProps.activeReadArguments.count > this.props.activeReadArguments.count) {
this.datatableRef.current?.resetScroll();
}
}

// If we disable frozen, then we need to check the current position of the scrollbar and if necessary append more memory
if (prevProps.isFrozen && !this.props.isFrozen) {
const wrapper = this.datatableWrapper;
if (wrapper) {
this.appendMoreMemoryOnListEnd(wrapper);
// If we disable frozen, then we need to check the current position of the scrollbar and if necessary append more memory
if (prevProps.isFrozen && !this.props.isFrozen) {
const wrapper = this.datatableWrapper;
if (wrapper) {
this.appendMoreMemoryOnListEnd(wrapper);
}
}
}
}
Expand Down

0 comments on commit 975fcd2

Please sign in to comment.