Bug fix for null bio field
This commit is contained in:
@@ -472,7 +472,7 @@ async function handle_update__event_presenter({
|
||||
</Tab>
|
||||
<Tab bind:group={$store_current_tab} name="tab_biograhpy" value={'biograhpy'} disabled={!$slct.event_presenter_obj.event_presenter_id_random}>
|
||||
<svelte:fragment slot="lead"><span class="fas fa-users"></span></svelte:fragment>
|
||||
{#if $slct.event_presenter_obj.biography.length > 50}
|
||||
{#if $slct.event_presenter_obj.biography && $slct.event_presenter_obj.biography.length > 50}
|
||||
<span class="fas fa-check text-green-500"></span>
|
||||
{/if}
|
||||
Biography
|
||||
@@ -646,7 +646,7 @@ async function handle_update__event_presenter({
|
||||
<label class="label ae_label event_presenter__biography">Speaker Biography
|
||||
<textarea name="biography" id="biography" class="textarea ae_value event_presenter__biography tinymce_editor editor_basic" rows="10" cols="70" bind:value={$slct.event_presenter_obj.biography} placeholder="A short biography the speaker"></textarea>
|
||||
</label>
|
||||
<p>Biography length: {($slct.event_presenter_obj.biography ? $slct.event_presenter_obj.biography.length : 0)} characters</p>
|
||||
<!-- <p>Biography length: {($slct.event_presenter_obj.biography ? $slct.event_presenter_obj.biography.length : 0)} characters</p> -->
|
||||
<p>1,375 is roughly 250 to 300 words</p>
|
||||
|
||||
<div class="flex flex-wrap gap-2 p-1">
|
||||
|
||||
Reference in New Issue
Block a user