Skip to content

Commit

Permalink
Fix widget synchonization issue and CI build (#58)
Browse files Browse the repository at this point in the history
* Fix widget synchonization issue

* Fix build
  • Loading branch information
martinRenou committed Mar 4, 2019
1 parent 6b5ca42 commit 5db721c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"scripts": {
"prepare": "npm run build",
"build": "tsc --project . || webpack --mode=development",
"build": "tsc --project . && webpack --mode=development",
"watch": "npm-run-all -p watch:*",
"watch:lib": "tsc -w --project .",
"watch:nbextension": "webpack --watch --mode=development",
Expand Down
2 changes: 1 addition & 1 deletion js/src/sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ let SheetView = widgets.DOMWidgetView.extend({
for (let key in this.widget_views) {
if(this.widget_views.hasOwnProperty(key)) {
// Ugly, this should be properly done
let [row, col] = String(key).split(',').map(parseInt);
let [row, col] = String(key).split(',').map(x => parseInt(x));
let widget_view = this.widget_views[key];
if(data[row][col] && data[row][col].value && data[row][col].value.cid == widget_view.model.cid) {
// good, the previous widget_view should be reused
Expand Down
1 change: 0 additions & 1 deletion js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"resolveJsonModule": true,
"noImplicitAny": false,
"lib": ["dom", "es5", "es2015.promise", "es2015.iterable"],
"noEmitOnError": false,
"strictNullChecks": true,
"module": "commonjs",
"moduleResolution": "node",
Expand Down

0 comments on commit 5db721c

Please sign in to comment.