mirror of
https://github.com/dream-num/univer.git
synced 2026-09-01 15:29:43 +08:00
fix(sheets-filter): fix filter treat number as string expect value (#5862)
This commit is contained in:
@@ -576,6 +576,11 @@ function getFilterValueForConditionalFiltering(worksheet: Worksheet, row: number
|
||||
return rawCell.v as number;
|
||||
}
|
||||
|
||||
// if the type is number, no matter what the raw value is, we should always return a number.
|
||||
if (interceptedCell.t === CellValueType.NUMBER) {
|
||||
return Number(rawCell.v);
|
||||
}
|
||||
|
||||
return extractFilterValueFromCell(rawCell);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user