Skip to content

Commit

Permalink
Merge pull request #15 from playerla/playerla/webcomponents-perform-14
Browse files Browse the repository at this point in the history
# Beta 0.1.5 Release of flask-socketio-lit-html

## Fixes since 0.1.4
Fixes #14
Fixes #13
  • Loading branch information
playerla committed Dec 22, 2019
2 parents f218da2 + 84ddf59 commit e6bebc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ class Item extends LitElement {
})
}
_get() {
get('{{ base_url }}'+'/'+this.index).then(item => {
if(item)
this._set(item);
else
console.log("undefined item ", this.index);
if (this.index)
get('{{ base_url }}'+'/'+this.index).then(item => {
if(item)
this._set(item);
else
console.log("undefined item ", this.index);
})}
updated(changedProperties) {
if (changedProperties.has('index')) {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flask-socketio-lit-html"
version = "0.1.4"
version = "0.1.5"
description = "Simple Webcomponents with flask"
authors = ["playerla <playerla.94@gmail.com>"]
repository = "https://github.com/playerla/flask-socketio-lit-html"
Expand Down

0 comments on commit e6bebc2

Please sign in to comment.