Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version v1.0.0-132 #2173

Merged
merged 14 commits into from
Dec 2, 2024
Prev Previous commit
Next Next commit
fix: fix date range field
nichenqin committed Dec 2, 2024
commit 6fda104f8c442c84aeda68830ad05280eca642ca
Original file line number Diff line number Diff line change
@@ -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)