fix List Pages to work with Vectors

This commit is contained in:
Samuel Lorch 2023-11-06 22:38:32 +01:00
parent 4d928ca00e
commit deac409136
3 changed files with 16 additions and 16 deletions

View file

@ -18,13 +18,13 @@ const columns = [
const displayData = $computed(() => {
let data: any;
data = [];
for (const name in interfaces) {
for (const index in interfaces) {
data.push({
name,
type: interfaces[name].type,
addressing_mode: interfaces[name].addressing_mode,
address: interfaces[name].address,
comment: interfaces[name].comment,
name: interfaces[index].name,
type: interfaces[index].type,
addressing_mode: interfaces[index].addressing_mode,
address: interfaces[nindexame].address,
comment: interfaces[index].comment,
});
}
return data;

View file

@ -29,12 +29,12 @@ async function load(){
const displayData = $computed(() => {
let data: any;
data = [];
for (const name in addresses) {
for (const index in addresses) {
data.push({
name,
value: getAddressValue(addresses[name]),
type: addresses[name].type,
comment: addresses[name].comment,
name: addresses[index].name,
value: getAddressValue(addresses[index]),
type: addresses[index].type,
comment: addresses[index].comment,
});
}
return data;

View file

@ -17,12 +17,12 @@ const columns = [
const displayData = $computed(() => {
let data: any;
data = [];
for (const name in services) {
for (const index in services) {
data.push({
name,
value: getServiceValue(services[name]),
type: services[name].type,
comment: services[name].comment,
name: services[index].name,
value: getServiceValue(services[index]),
type: services[index].type,
comment: services[index].comment,
});
}
return data;