diff --git a/app/src/protyle/render/av/index.ts b/app/src/protyle/render/av/index.ts
index 4410589c9..dd7f86e10 100644
--- a/app/src/protyle/render/av/index.ts
+++ b/app/src/protyle/render/av/index.ts
@@ -56,9 +56,9 @@ export const avRender = (element: Element) => {
// }]
// };
fetchPost("/api/av/renderAttributeView", {id: e.getAttribute("data-node-id")}, (response) => {
- const data = response.data
+ const data = response.data.av;
let tableHTML = '
`;
- data.rows.forEach((row) => {
+ data.rows.forEach((row: IAVRow) => {
tableHTML += ``;
row.cells.forEach((cell, index) => {
- tableHTML += `
${cell.value}
`
+ tableHTML += `
${cell.value}
`
});
tableHTML += `
`;
});
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index da1160340..6aaf6f3d4 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -799,3 +799,23 @@ interface IBazaarItem {
hUpdated: string
preferredFunding: string
}
+
+interface IAVColumn {
+ width: number,
+ icon: string,
+ id: string,
+ name: string,
+ wrap: boolean,
+ type: string,
+}
+
+interface IAVRow {
+ id: string,
+ cells: IAVCell[]
+}
+
+interface IAVCell {
+ color: string,
+ bgColor: string,
+ value: string,
+}