Skip to content

Commit

Permalink
fix: fix date range field
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Dec 2, 2024
1 parent 0b6e627 commit 8d4661f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { getDateRangeFieldName } from "../../underlying-table.util"
import { UnderlyingConversionStrategy } from "../conversion.interface"

export class AnyToDateRangeStrategy extends UnderlyingConversionStrategy {
convert(field: Field, previousField: Field): void | Promise<void> {
if (field.type !== "dateRange" || previousField.type !== "date") {
convert(field: Field): void | Promise<void> {
if (field.type !== "dateRange") {
return
}
const { start, end } = getDateRangeFieldName(field)
Expand Down

0 comments on commit 8d4661f

Please sign in to comment.