Skip to content

Commit 04d8b63

Browse files
authored
Merge pull request #696 from devforth/next
Next
2 parents 8698a12 + b22f440 commit 04d8b63

7 files changed

Lines changed: 8 additions & 2 deletions

File tree

adminforth/dataConnectors/baseConnector.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,13 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
471471
return this.setFieldValue(field, null);
472472
}
473473
if (typeof value !== 'boolean') {
474-
throw new Error(`Value is not a boolean. Field ${field.name} with type is ${field.type}, but got value: ${value} with type ${typeof value}`);
474+
const errorMessage = `Value is not a boolean. Field ${field.name} with type is ${field.type}, but got value: ${value} with type ${typeof value}`;
475+
if (value !== 1 && value !== 0) {
476+
throw new Error(errorMessage);
477+
} else {
478+
afLogger.warn(errorMessage);
479+
afLogger.warn(`Ignore this warn, if you are using an sqlite database`);
480+
}
475481
}
476482
return this.setFieldValue(field, value);
477483
}
-23.6 KB
Loading
387 KB
Loading
512 KB
Loading
42 KB
Loading
51.7 KB
Loading

adminforth/spa/src/afcl/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@click="inputClick"
1212
@input="inputInput"
1313
class="block w-full pl-3 pr-10 py-2.5 border border-lightDropownButtonsBorder rounded-md leading-5 bg-lightDropdownButtonsBackground
14-
placeholder-lightDropdownButtonsPlaceholderText text-lightDropdownButtonsText sm:text-sm transition duration-150 ease-in-out dark:bg-darkDropdownButtonsBackground dark:border-darkDropdownButtonsBorder dark:placeholder-darkDropdownButtonsPlaceholderText
14+
placeholder-lightDropdownButtonsPlaceholderText text-lightDropdownButtonsText text-base sm:text-sm transition duration-150 ease-in-out dark:bg-darkDropdownButtonsBackground dark:border-darkDropdownButtonsBorder dark:placeholder-darkDropdownButtonsPlaceholderText
1515
dark:text-darkDropdownButtonsText focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
1616
:class="[{'cursor-pointer': searchDisabled}, classesForInput]"
1717
autocomplete="off" data-custom="no-autofill"

0 commit comments

Comments
 (0)