From b11d3c46b6e39945a41bf5e7814142c87b8b682b Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sun, 26 Sep 2021 13:20:46 +0200 Subject: [PATCH] cleanup Signed-off-by: Andrey Platov --- .../src/components/AttachmentPresenter.svelte | 10 ++++------ .../src/components/ApplicationsPresenter.svelte | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte index 69d495fb2d..ca0e9b65b8 100644 --- a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte @@ -25,10 +25,8 @@ -{#if value} - {#if Object.keys(value.attachments).length === 1} - { showPopup(PDFViewer, { file: Object.values(value.attachments)[0].file }, 'right') } }/> - {:else if Object.keys(value.attachments).length > 1} - - {/if} +{#if Object.keys(value.attachments).length === 1} + { showPopup(PDFViewer, { file: Object.values(value.attachments)[0].file }, 'right') } }/> +{:else if Object.keys(value.attachments).length > 1} + {/if} diff --git a/plugins/recruit-resources/src/components/ApplicationsPresenter.svelte b/plugins/recruit-resources/src/components/ApplicationsPresenter.svelte index 7a20a3a2d2..fce09aa711 100644 --- a/plugins/recruit-resources/src/components/ApplicationsPresenter.svelte +++ b/plugins/recruit-resources/src/components/ApplicationsPresenter.svelte @@ -23,8 +23,6 @@ export let value: Candidate -{#if value} - {#if value.applications && value.applications > 0} - {value.applications} - {/if} +{#if value.applications && value.applications > 0} + {value.applications} {/if}