Delete test.ts
This commit is contained in:
parent
9a6c19c2b2
commit
5dc2d9d1da
1 changed files with 0 additions and 20 deletions
20
test.ts
20
test.ts
|
@ -1,20 +0,0 @@
|
||||||
const option = collectionDetails
|
|
||||||
.fields
|
|
||||||
.find(
|
|
||||||
(field): field is { type: "Option", slug: string, validations: WebflowValidations["Option"] } =>
|
|
||||||
field.slug === fieldData.path
|
|
||||||
)!
|
|
||||||
.validations;
|
|
||||||
|
|
||||||
if (fieldData.type
|
|
||||||
"Option" && typeof rawValue
|
|
||||||
"string")
|
|
||||||
return (
|
|
||||||
(
|
|
||||||
collectionDetails.fields. find (predicate: (field) ⇒ field.slug
|
|
||||||
| WebflowValidations["Option"]
|
|
||||||
| undefined
|
|
||||||
fieldData.path) ?. validations as
|
|
||||||
)?. options.find(predicate: (option) ⇒ option.id
|
|
||||||
rawValue) ?. name ?? fullMatch
|
|
||||||
);
|
|
Loading…
Reference in a new issue