From 30bf03c8aa8bb256df7f3940433e89b430777bd8 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Tue, 14 May 2024 15:21:59 +0200 Subject: [PATCH] Removed async on icon validate function --- src/fields/iconField/iconField.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fields/iconField/iconField.ts b/src/fields/iconField/iconField.ts index bbbd1b8..6f8b287 100644 --- a/src/fields/iconField/iconField.ts +++ b/src/fields/iconField/iconField.ts @@ -13,7 +13,7 @@ export const iconField = (props: Props): TextField => ({ description: "Select an icon from here: https://icones.js.org/collection/material-symbols. Only outline and regular variants are usable on the website.", }, - validate: async (value) => { + validate: (value) => { if (isEmpty(value)) return true; if (!validNames.includes(value)) { return `The icon "${value}" doesn't exist in material-symbols`;