XML Import related fixes (#724)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2021-12-23 20:30:19 +07:00 committed by GitHub
parent d115f4c5f8
commit b37c802aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 10 deletions

View File

@ -260,7 +260,7 @@ async function createCandidate (_name: string, pos: number, len: number, c: any,
const { sourceFields, telegram, linkedin, github } = parseSocials(c)
const data: Data<Candidate> = {
name: names.slice(1).join(' ') + ', ' + names[0],
name: names.slice(1).join(' ') + ',' + names[0],
city: get(c, _.city) ?? '',
title: [
get(c, _.vacancyKind),

View File

@ -23,7 +23,7 @@
</script>
{#if value.attachments && value.attachments > 0}
{#if value && value.attachments && value.attachments > 0}
<Tooltip label={'Attachments (' + value.attachments + ')'} component={AttachmentPopup} props={{ objectId: value._id }}>
<div class="sm-tool-icon">
<span class="icon"><IconAttachment size="small"/></span>&nbsp;{value.attachments}

View File

@ -23,7 +23,7 @@
export let value: Doc & { comments?: number }
</script>
{#if value.comments && value.comments > 0}
{#if value && value.comments && value.comments > 0}
<Tooltip label={chunter.string.Comments} component={CommentPopup} props={{ objectId: value._id }}>
<div class="sm-tool-icon">
<span class="icon"><IconThread size="small"/></span>&nbsp;{value.comments}

View File

@ -30,6 +30,8 @@
}
</script>
<div class="sm-tool-icon" on:click={show}>
<span class="icon"><IconFile size={'small'} /></span>&nbsp;{shortLabel}-{value.number}
</div>
{#if value && shortLabel}
<div class="sm-tool-icon" on:click={show}>
<span class="icon"><IconFile size={'small'} /></span>&nbsp;{shortLabel}-{value.number}
</div>
{/if}

View File

@ -21,9 +21,11 @@
</script>
<div class="overflow-label state-container" style="background-color: {value.color}">
{value.title}
</div>
{#if value}
<div class="overflow-label state-container" style="background-color: {value.color}">
{value.title}
</div>
{/if}
<style lang="scss">
.state-container {

View File

@ -43,7 +43,7 @@
(result) => {
objects = result
},
{ sort: { [sortKey]: sortOrder }, ...options, limit: 500 }
{ sort: { [sortKey]: sortOrder }, ...options, limit: 200 }
)
function getValue (doc: Doc, key: string): any {