Skip to content

Commit

Permalink
🚧 para arreglar: modularizar gráficas para que funcione en listas col…
Browse files Browse the repository at this point in the history
…ectivos también
  • Loading branch information
anattolia committed Oct 21, 2024
1 parent 561f604 commit 3d7a804
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions aplicaciones/www/src/components/VistaGraficas.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script setup lang="ts">
import { onMounted, ref, watch, type Ref } from 'vue';
import { convertirEscala } from '@enflujo/alquimia';
import type { ElementoLista, Listas } from '../../../../tipos/compartidos';
import type { ElementoLista, Listas, ListasColectivos } from '../../../../tipos/compartidos';
import { usarCerebro } from '@/utilidades/cerebro';
import { storeToRefs } from 'pinia';
defineProps<{
id: keyof Listas;
/* defineProps<{
id: keyof Listas | ListasColectivos;
lista: ElementoLista[];
}>();
}>(); */
let listas: { [llave: string]: ElementoLista[] } = {};
const cerebro = usarCerebro();
Expand All @@ -31,6 +31,7 @@ watch(listaElegida, (llaveLista) => {
});
onMounted(async () => {
// POR HACER: Arreglar para que funcione con listas colectivos también
try {
const datosListas = await fetch('datos/listas.json').then((res) => res.json());
if (datosListas) {
Expand Down

0 comments on commit 3d7a804

Please sign in to comment.