Skip to content

Commit 8fc16a1

Browse files
committed
refactor: remove unused fields from datasetsQuery and update schema key in useDatasetsSchemas hook
1 parent e61cf28 commit 8fc16a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/modules/datasets/datasetsQuery.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export const datasetsQuery = graphql(`
1919
}
2020
timestamp
2121
name
22-
multiaddr
23-
checksum
2422
transfers(orderBy: timestamp, orderDirection: desc) {
2523
transaction {
2624
txHash: id

src/modules/datasets/hooks/useDatasetsSchemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export function useDatasetsSchemas(
2929

3030
if (result?.protectedDatas) {
3131
result.protectedDatas.forEach((protectedData) => {
32-
if (protectedData?.id) {
33-
schemasMap.set(protectedData.id, protectedData.schema || []);
32+
if (protectedData?.address) {
33+
schemasMap.set(protectedData.address, protectedData.schema || []);
3434
}
3535
});
3636
}

0 commit comments

Comments
 (0)