fixing newest first mode issue and actionscell dispatch issue (#2305)
This commit is contained in:
parent
6891f71452
commit
48325bc5ad
1 changed files with 11 additions and 1 deletions
|
@ -192,7 +192,17 @@ const Filters: React.FC<FiltersProps> = ({
|
|||
setAttempt(attempt + 1);
|
||||
|
||||
if (isSeekTypeControlVisible) {
|
||||
props.seekType = isLive ? SeekType.LATEST : currentSeekType;
|
||||
switch (seekDirection) {
|
||||
case SeekDirection.FORWARD:
|
||||
props.seekType = SeekType.BEGINNING;
|
||||
break;
|
||||
case SeekDirection.BACKWARD:
|
||||
case SeekDirection.TAILING:
|
||||
props.seekType = SeekType.LATEST;
|
||||
break;
|
||||
default:
|
||||
props.seekType = currentSeekType;
|
||||
}
|
||||
props.seekTo = selectedPartitions.map(({ value }) => {
|
||||
const offsetProperty =
|
||||
seekDirection === SeekDirection.FORWARD ? 'offsetMin' : 'offsetMax';
|
||||
|
|
Loading…
Add table
Reference in a new issue