Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 13, 2024
1 parent 220ee28 commit e7c4b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions panel/models/react_component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ReactComponentView extends ReactiveESMView {
}

protected override _render_code(): string {
const suffix = this.model.dev ? '?dev': ''
const suffix = this.model.dev ? "?dev": ""
let render_code = `
if (rendered && view.model.usesReact) {
view._changing = true
Expand Down Expand Up @@ -210,7 +210,7 @@ export class ReactComponent extends ReactiveESM {
const react_version = this.react_version
const imports = this.importmap?.imports
const scopes = this.importmap?.scopes
const suffix = this.dev ? '?dev': ''
const suffix = this.dev ? "?dev": ""
const importMap = {
imports: {
react: `https://esm.sh/react@${react_version}${suffix}`,
Expand Down
4 changes: 2 additions & 2 deletions panel/models/reactive_esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class ReactiveESM extends HTMLBox {
remaining.push([wview, cb])
}
}
if (remaining.length) {
if (remaining.length > 0) {
this._esm_watchers[prop] = remaining
} else {
delete this._esm_watchers[prop]
Expand All @@ -381,7 +381,7 @@ export class ReactiveESM extends HTMLBox {
remaining.push([wview, cb])
}
}
if (remaining.length) {
if (remaining.length > 0) {
this._esm_watchers[p] = remaining
} else {
delete this._esm_watchers[p]
Expand Down

0 comments on commit e7c4b5f

Please sign in to comment.