Skip to content

Commit

Permalink
fix the bug in cardView and lineView
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronsutter committed Nov 19, 2019
1 parent 6c05892 commit 0a41dcb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions build/afterAllArtifactBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports.default = function (buildResult) {
console.log("artifactPaths", buildResult.artifactPaths)
console.log("platformToTargets", buildResult.platformToTargets)
if (process.env.BUILD_TYPE === 'trial') {
throw new Error("I pitty the fool!");
if(process.env.BUILD_PLATFORM === 'win32') {
fs.renameSync('latest.yml', 'latest-trial.yml')
} else {
Expand Down
4 changes: 2 additions & 2 deletions example.pltr
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
"dirty": true,
"fileName": "/Users/sparrowhawk/github/plottr_electron/example.pltr",
"loaded": true,
"version": "1.4.26"
"version": "1.4.27"
},
"lines": [
{
Expand Down Expand Up @@ -1098,7 +1098,7 @@
"age": []
},
"characterSort": "name~asc",
"currentView": "characters",
"currentView": "timeline",
"darkMode": false,
"noteFilter": null,
"noteSort": "title~asc",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "https://github.com/cameronsutter/plottr_electron.git",
"private": true,
"readme": "Copyright 2016 C. Louis S. (Cameron Sutter)",
"version": "1.4.27",
"version": "1.4.28",
"author": {
"name": "C. Louis S.",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/timeline/cardView.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class CardView extends Component {
}

handleBlur = () => {
var newTitle = this.refs.titleInput.getValue()
var newTitle = ReactDOM.findDOMNode(this.refs.titleInput).value
if (newTitle === '') {
this.setState({creating: false})
return false
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/timeline/lineView.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class LineView extends Component {
}

handleBlur = () => {
if (this.refs.titleInput.getValue() !== '') {
if (ReactDOM.findDOMNode(this.refs.titleInput).value !== '') {
this.editTitle()
this.setState({editing: false})
}
Expand Down

0 comments on commit 0a41dcb

Please sign in to comment.