Skip to content

Commit

Permalink
Merge pull request #321 from EyeSeeTea/development-malaria
Browse files Browse the repository at this point in the history
Hotfix Release 0.6.1
  • Loading branch information
adrianq authored Jan 14, 2020
2 parents a0b5d3c + 0e27eaf commit 359d594
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico?v=3">

<link type="text/css" rel="stylesheet" href="%PUBLIC_URL%/includes/material-design-icons/material-icons.css"/>
<link type="text/css" rel="stylesheet" href="%PUBLIC_URL%/includes/roboto-font.css"/>
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "Metadata Sync",
"name": "Metadata Synchronization",
"short_name": "MetaData Synchronization",
"name": "MetaData Synchronization",
"icons": [
{
"src": "favicon.ico",
Expand Down
20 changes: 10 additions & 10 deletions src/models/syncRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class SyncRule {
}

public get name(): string {
return this.syncRule.name;
return this.syncRule.name ?? "";
}

public get type(): SyncRuleType {
Expand All @@ -71,11 +71,11 @@ export default class SyncRule {
}

public get metadataIds(): string[] {
return this.syncRule.builder.metadataIds;
return this.syncRule.builder.metadataIds ?? [];
}

public get excludedIds(): string[] {
return this.syncRule.builder.excludedIds;
return this.syncRule.builder.excludedIds ?? [];
}

public get dataSyncAttributeCategoryOptions(): string[] {
Expand Down Expand Up @@ -111,11 +111,11 @@ export default class SyncRule {
}

public get targetInstances(): string[] {
return this.syncRule.builder.targetInstances;
return this.syncRule.builder.targetInstances ?? [];
}

public get enabled(): boolean {
return this.syncRule.enabled;
return this.syncRule.enabled ?? false;
}

public get frequency(): string | undefined {
Expand All @@ -141,23 +141,23 @@ export default class SyncRule {
}

public get publicAccess(): string {
return this.syncRule.publicAccess;
return this.syncRule.publicAccess ?? "--------";
}

public get userAccesses(): SharingSetting[] {
return this.syncRule.userAccesses;
return this.syncRule.userAccesses ?? [];
}

public get userGroupAccesses(): SharingSetting[] {
return this.syncRule.userGroupAccesses;
return this.syncRule.userGroupAccesses ?? [];
}

public get syncParams(): MetadataSynchronizationParams {
return this.syncRule.builder.syncParams || {};
return this.syncRule.builder.syncParams ?? {};
}

public get dataParams(): DataSynchronizationParams {
return this.syncRule.builder.dataParams || {};
return this.syncRule.builder.dataParams ?? {};
}

public static create(type: SyncRuleType = "metadata"): SyncRule {
Expand Down

0 comments on commit 359d594

Please sign in to comment.