mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
merged origin/release/0.12
This commit is contained in:
@@ -49,7 +49,6 @@ export class BooleanField<Required extends true | false = false> extends Field<
|
||||
}
|
||||
|
||||
override transformRetrieve(value: unknown): boolean | null {
|
||||
//console.log("Boolean:transformRetrieve:value", value);
|
||||
if (typeof value === "undefined" || value === null) {
|
||||
if (this.isRequired()) return false;
|
||||
if (this.hasDefault()) return this.getDefault();
|
||||
|
||||
Reference in New Issue
Block a user