Skip to content

Commit

Permalink
fix: upgrade internal configuration model (set defaults) when extensi…
Browse files Browse the repository at this point in the history
…on is upgraded to prevent #64

Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed Aug 15, 2023
1 parent 21c7b7b commit ba23e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension_service_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function performUpgrade(fromVersion: string, reason: string): Promise<void
logger.logMessage(`Upgrading from ${fromVersion}`, LogLevel.INFO)
// There was no upgrade of internal data prior to 2.9.1

if (compareVersions('2.9.0', fromVersion) < 1) {
if (fromVersion === undefined || compareVersions('2.9.0', fromVersion) < 1) {
// Upgrading from 2.9.0 or prior
readExtensionConfiguration()
.then((response) => {
Expand Down

0 comments on commit ba23e3c

Please sign in to comment.