fixing newest first mode issue and actionscell dispatch issue (#2305)

This commit is contained in:
Robert Azizbekyan 2022-07-21 16:57:49 +04:00 committed by GitHub
parent 6891f71452
commit 48325bc5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,17 @@ const Filters: React.FC<FiltersProps> = ({
setAttempt(attempt + 1); setAttempt(attempt + 1);
if (isSeekTypeControlVisible) { 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 }) => { props.seekTo = selectedPartitions.map(({ value }) => {
const offsetProperty = const offsetProperty =
seekDirection === SeekDirection.FORWARD ? 'offsetMin' : 'offsetMax'; seekDirection === SeekDirection.FORWARD ? 'offsetMin' : 'offsetMax';