From 5e66f1f160a6f2c20b2d38522b87a20f0aa7c300 Mon Sep 17 00:00:00 2001 From: Matias Arriola Date: Wed, 22 Dec 2021 11:22:08 -0300 Subject: [PATCH] Fix textarea not showing after eslint fixes (eqeqeq) --- packages/web2d/src/components/peer/svg/Font.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/web2d/src/components/peer/svg/Font.js b/packages/web2d/src/components/peer/svg/Font.js index a9ee7ca2..3d503d97 100644 --- a/packages/web2d/src/components/peer/svg/Font.js +++ b/packages/web2d/src/components/peer/svg/Font.js @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { $defined } from '@wisemapping/core-js'; +import { $assert, $defined } from '@wisemapping/core-js'; class Font { constructor() { @@ -68,7 +68,9 @@ class Font { return this._weight; } - setSize(size) { + setSize(value) { + const size = parseInt(value, 10); + $assert(!Number.isNaN(size), 'size must be a valid integer'); this._size = size; }