From 4b1549a04eea8138e27ac8d714718812564fe7cc Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 9 Oct 2020 12:42:56 +0100 Subject: [PATCH 1/2] Fix issue displaying linked records in a table --- packages/standard-components/src/DataTable.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/DataTable.svelte b/packages/standard-components/src/DataTable.svelte index 5b950fec4b..35a92a7e1a 100644 --- a/packages/standard-components/src/DataTable.svelte +++ b/packages/standard-components/src/DataTable.svelte @@ -99,7 +99,7 @@ {#if schema[header].type === 'attachment'} {:else if schema[header].type === 'link'} - {row[header] ? row[header].length : 0} related row(s) + {row[header]} related row(s) {:else if row[header]} {row[header]} {/if} From 89d02357b84bae496054c0d5b98e377ad5079df6 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 9 Oct 2020 17:28:49 +0100 Subject: [PATCH 2/2] Making sure any errors that occur in usage quota are thrown up to stop endpoint from functioning. --- packages/server/src/utilities/usageQuota.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/usageQuota.js b/packages/server/src/utilities/usageQuota.js index fdf8ea813c..95fc76140f 100644 --- a/packages/server/src/utilities/usageQuota.js +++ b/packages/server/src/utilities/usageQuota.js @@ -94,7 +94,7 @@ exports.update = async (apiKey, property, usage) => { await apiKeyTable.put({ item: keyObj }) return } - throw "Resource limits have been reached" } + throw "Resource limits have been reached" } }