Lint
This commit is contained in:
parent
ba9b5c3271
commit
b65e9cfc80
|
@ -71,9 +71,11 @@
|
||||||
options.push({
|
options.push({
|
||||||
icon: "VisibilityOff",
|
icon: "VisibilityOff",
|
||||||
value: PERMISSION_OPTIONS.HIDDEN,
|
value: PERMISSION_OPTIONS.HIDDEN,
|
||||||
tooltip: requiredTooltip || "Hidden",
|
|
||||||
disabled: isDisplayColumn || isRequired,
|
disabled: isDisplayColumn || isRequired,
|
||||||
tooltip: isDisplayColumn && "Display column cannot be hidden",
|
tooltip:
|
||||||
|
(isDisplayColumn && "Display column cannot be hidden") ||
|
||||||
|
requiredTooltip ||
|
||||||
|
"Hidden",
|
||||||
})
|
})
|
||||||
|
|
||||||
return { ...c, options }
|
return { ...c, options }
|
||||||
|
|
|
@ -2,10 +2,11 @@ import { auth, permissions } from "@budibase/backend-core"
|
||||||
import { DataSourceOperation } from "../../../constants"
|
import { DataSourceOperation } from "../../../constants"
|
||||||
import { Table, WebhookActionType } from "@budibase/types"
|
import { Table, WebhookActionType } from "@budibase/types"
|
||||||
import Joi, { CustomValidator } from "joi"
|
import Joi, { CustomValidator } from "joi"
|
||||||
import { ValidSnippetNameRegex } from "@budibase/shared-core"
|
import { ValidSnippetNameRegex, helpers } from "@budibase/shared-core"
|
||||||
import { isRequired } from "../../../utilities/schema"
|
|
||||||
import sdk from "../../../sdk"
|
import sdk from "../../../sdk"
|
||||||
|
|
||||||
|
const { isRequired } = helpers.schema
|
||||||
|
|
||||||
const OPTIONAL_STRING = Joi.string().optional().allow(null).allow("")
|
const OPTIONAL_STRING = Joi.string().optional().allow(null).allow("")
|
||||||
const OPTIONAL_NUMBER = Joi.number().optional().allow(null)
|
const OPTIONAL_NUMBER = Joi.number().optional().allow(null)
|
||||||
const OPTIONAL_BOOLEAN = Joi.boolean().optional().allow(null)
|
const OPTIONAL_BOOLEAN = Joi.boolean().optional().allow(null)
|
||||||
|
|
Loading…
Reference in New Issue