From 07345c50c1c31e66c462052259feaffae4f3b524 Mon Sep 17 00:00:00 2001 From: Nikesh-hub <69974202+Nikesh-hub@users.noreply.github.com> Date: Mon, 24 Aug 2020 10:43:18 +0530 Subject: [PATCH] Update Traits.md --- docs/modules/Traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/Traits.md b/docs/modules/Traits.md index 4ff92cbbb..9d9c475e4 100644 --- a/docs/modules/Traits.md +++ b/docs/modules/Traits.md @@ -299,7 +299,7 @@ editor.TraitManager.addType('href-next', { createInput({ trait }) { // Here we can decide to use properties from the trait const traitOpts = trait.get('options') || []; - const options = traitOpts.lenght ? traitOpts : [ + const options = traitOpts.length ? traitOpts : [ { id: 'url', name: 'URL' }, { id: 'email', name: 'Email' }, ];