fix result by id

This commit is contained in:
Ruben Fiszel
2022-10-26 08:54:28 +02:00
parent 6fcf984ea3
commit 340add7f4f
@@ -105,7 +105,10 @@
<ObjectViewer
collapsed={true}
json={priorIds}
on:select={(e) => dispatch('select', `result_by_id('${e.detail}')`)}
on:select={(e) => {
const [first, ...second] = e.detail.split('.')
dispatch('select', `result_by_id('${first}')${second.length ? '.' + second.join('.') : ''}`)
}}
/>
</div>
{/if}