Fix textarea not showing after eslint fixes (eqeqeq)

This commit is contained in:
Matias Arriola 2021-12-22 11:22:08 -03:00
parent 3ac1b939aa
commit 5e66f1f160

View File

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