{#if data} {#if data.objectTypeField} { $draggedPinnedObject = data; }} on:dragenter={e => { dragExchange( $draggedPinnedObject, data, $pinnedTables, value => ($pinnedTables = value), (a, b) => a?.pureName == b?.pureName && a?.schemaName == b?.schemaName ); }} on:dragend={() => { $draggedPinnedObject = null; }} /> {:else} { $draggedPinnedObject = data; }} on:dragenter={e => { dragExchange( $draggedPinnedObject, data, $pinnedDatabases, value => ($pinnedDatabases = value), (a, b) => a?.name == b?.name && a?.connection?._id == b?.connection?._id ); }} on:dragend={() => { $draggedPinnedObject = null; }} /> {/if} {/if}