Skip to content

Commit

Permalink
adds a fallback for missing semver/installed node-red versions for k8…
Browse files Browse the repository at this point in the history
…/docker deployments
  • Loading branch information
cstns committed Sep 19, 2024
1 parent 19d959e commit 81a3897
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
.reduce((acc, currentInstance) => {
currentInstance.dependencies.forEach(dep => {
const searchTerm = this.searchTerm.trim()
const installedDependencyVersion = dep.version.installed ?? dep.version.semver
const installedDependencyVersion = dep.version?.installed ?? dep.version?.semver ?? 'N/A'
const dependencyNameMatchesSearch = dep.name.toLowerCase().includes(searchTerm.toLowerCase())
const dependencyVersionMatchesSearch = installedDependencyVersion.toLowerCase().includes(searchTerm.toLowerCase())
const matchesInstanceName = currentInstance.name.toLowerCase().includes(searchTerm.toLowerCase())
Expand Down

0 comments on commit 81a3897

Please sign in to comment.