Skip to content

Commit ce35ed1

Browse files
committed
refactor: remove unused object type logic from renderObjectHeader in ECCClientGa4ghDrsObject component
1 parent 608f40a commit ce35ed1

File tree

1 file changed

+5
-8
lines changed
  • packages/ecc-client-ga4gh-drs/src/components/object

1 file changed

+5
-8
lines changed

packages/ecc-client-ga4gh-drs/src/components/object/object.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ export class ECCClientGa4ghDrsObject extends LitElement {
160160
private renderObjectHeader() {
161161
if (!this.object) return html``;
162162

163-
const objectType =
164-
this.object.contents && this.object.contents.length > 0
165-
? "Bundle"
166-
: "Blob";
167-
const objectTypeVariant = objectType === "Bundle" ? "default" : "secondary";
163+
// const objectType =
164+
// this.object.contents && this.object.contents.length > 0
165+
// ? "Bundle"
166+
// : "Blob";
167+
// const objectTypeVariant = objectType === "Bundle" ? "default" : "secondary";
168168

169169
return html`
170170
<div class="mb-6">
@@ -173,9 +173,6 @@ export class ECCClientGa4ghDrsObject extends LitElement {
173173
<h2 class="text-xl truncate">
174174
${this.object.name || this.object.id}
175175
</h2>
176-
<ecc-utils-design-badge variant=${objectTypeVariant}>
177-
${objectType}
178-
</ecc-utils-design-badge>
179176
</div>
180177
181178
<div class="flex flex-wrap gap-2 items-center">

0 commit comments

Comments
 (0)