Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Jan 11, 2024
1 parent 7b51a96 commit 6747740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"test": "npm run lint && npm run build:js && grunt ci --verbose",
"docs": "typedoc && touch docs/api/.nojekyll && rm docs/unittest/*.*; cp test/unit/*.* docs/unittest",
"format": "eslint src --fix && prettier src docs/demo -w && npm run lint",
"lint": "prettier src docs/demo --check && eslint src docs/demo && tsc -t esnext --noEmit",
"lint": "prettier src docs/demo --check && eslint src docs/demo && tsc -t esnext --moduleResolution node --noEmit src/wunderbaum.ts",
"build:minjs:umd": "terser build/wunderbaum.umd.js --compress --mangle --source-map \"base='build',url='wunderbaum.umd.min.js.map',filename='wunderbaum.umd.js'\" --output build/wunderbaum.umd.min.js",
"build:minjs:esm": "terser build/wunderbaum.esm.js --compress --mangle --source-map \"base='build',url='wunderbaum.esm.min.js.map',filename='wunderbaum.esm.js'\" --output build/wunderbaum.esm.min.js",
"build:minjs": "npm run build:minjs:esm -s && npm run build:minjs:umd -s",
Expand Down
4 changes: 2 additions & 2 deletions src/wunderbaum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,8 @@ export class Wunderbaum {
util.assert(node, `Option '${change}' requires a node.`);
// Single nodes are immediately updated if already inside the viewport
// (otherwise we can ignore)
if (node!._rowElem) {
node!._render({ change: change });
if ((<WunderbaumNode>node)!._rowElem) {
(<WunderbaumNode>node)!._render({ change: change });
}
break;
default:
Expand Down

0 comments on commit 6747740

Please # to comment.