From 5f0421c41e40aad93086cc1ee07edc03f58bcac2 Mon Sep 17 00:00:00 2001 From: Eric Pyle Date: Tue, 23 Oct 2018 10:51:11 -0500 Subject: [PATCH] fix login to unknown workspace --- CHANGELOG.md | 4 ++++ app/containers/WorkspacesPage.js | 4 ++++ app/package-lock.json | 2 +- app/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c9e6d0c6a..118fe470b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### Version 0.12.1 +#### Fixes +- Fix "Login to Unknown Workspace" button + ### Version 0.12.0 #### Features - DBL dot local handles downloads for licensed and open access entries diff --git a/app/containers/WorkspacesPage.js b/app/containers/WorkspacesPage.js index da7b843add..fbec1a5503 100644 --- a/app/containers/WorkspacesPage.js +++ b/app/containers/WorkspacesPage.js @@ -366,6 +366,10 @@ function getDblWebsiteUrl(workspace) { } function updateWorkspaceLastAccess(workspace) { + if (!workspace || !workspace.fullPath) { + // unknown workspace + return; + } const lastAccessedTokenPath = path.join(workspace.fullPath, '.lastAccessed'); fs.ensureFileSync(lastAccessedTokenPath); fs.removeSync(lastAccessedTokenPath); diff --git a/app/package-lock.json b/app/package-lock.json index 00c981d698..15b9b2ad55 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,5 +1,5 @@ { "name": "nathanael", - "version": "0.12.0", + "version": "0.12.1", "lockfileVersion": 1 } diff --git a/app/package.json b/app/package.json index 88f4a00974..618b63412a 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "nathanael", "productName": "nathanael", - "version": "0.12.0", + "version": "0.12.1", "description": "Electron frontend to DBL dot Local", "main": "./main.prod.js", "author": { diff --git a/package-lock.json b/package-lock.json index 43b7064e8d..f7072afb82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nathanael", - "version": "0.12.0", + "version": "0.12.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2c612601a6..e4ef310b20 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nathanael", "productName": "nathanael", - "version": "0.12.0", + "version": "0.12.1", "description": "Electron frontend to DBL dot Local", "scripts": { "build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",