Skip to content

Commit 3e54e79

Browse files
fix: prevent fullvm deployments from appearing in micro vm list (#4420)
* fix: prevent fullvm deployments from appearing in micro vm list * Revert query changes, edit condition * Update packages/grid_client/src/modules/base.ts Co-authored-by: AhmedHanafy725 <[email protected]> --------- Co-authored-by: AhmedHanafy725 <[email protected]>
1 parent 35717dd commit 3e54e79

File tree

1 file changed

+4
-2
lines changed
  • packages/grid_client/src/modules

1 file changed

+4
-2
lines changed

packages/grid_client/src/modules/base.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ class BaseModule {
270270
const alreadyFetchedContracts: GqlNodeContract[] = [];
271271

272272
for (const contract of BaseModule.newContracts) {
273-
if (!contract.parsedDeploymentData?.projectName.includes(this.projectName)) continue;
274-
if (contract.parsedDeploymentData.type !== moduleName) continue;
273+
if (this.projectName) {
274+
if (!contract.parsedDeploymentData?.projectName?.startsWith(this.projectName)) continue;
275+
}
276+
if (contract.parsedDeploymentData?.type !== moduleName) continue;
275277

276278
const filteredContract = contracts.filter(c => c.contractID === contract.contractID);
277279

0 commit comments

Comments
 (0)