|
|
@ -188,7 +188,7 @@ export default class NewEditProjectView extends Vue { |
|
|
|
.where("did") |
|
|
|
.equals(activeDid) |
|
|
|
.first(); |
|
|
|
const identity = JSON.parse(account?.identity || "null"); |
|
|
|
const identity = JSON.parse((account?.identity as string) || "null"); |
|
|
|
|
|
|
|
if (!identity) { |
|
|
|
throw new Error( |
|
|
@ -210,8 +210,8 @@ export default class NewEditProjectView extends Vue { |
|
|
|
async created() { |
|
|
|
await db.open(); |
|
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
|
this.activeDid = (settings?.activeDid as string) || ""; |
|
|
|
this.apiServer = (settings?.apiServer as string) || ""; |
|
|
|
|
|
|
|
if (this.projectId) { |
|
|
|
if (this.numAccounts === 0) { |
|
|
@ -341,7 +341,9 @@ export default class NewEditProjectView extends Vue { |
|
|
|
if (serverError) { |
|
|
|
console.error("Got error from server", serverError); |
|
|
|
if (Object.prototype.hasOwnProperty.call(serverError, "message")) { |
|
|
|
userMessage = serverError.response?.data?.error?.message || ""; // This is info for the user. |
|
|
|
userMessage = |
|
|
|
(serverError.response?.data?.error?.message as string) || |
|
|
|
userMessage; // This is info for the user. |
|
|
|
this.$notify( |
|
|
|
{ |
|
|
|
group: "alert", |
|
|
|