Delete test.ts

This commit is contained in:
clover caruso 2025-07-24 20:43:30 -07:00
parent 9a6c19c2b2
commit 5dc2d9d1da

20
test.ts
View file

@ -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
);