good morning, I have a q-select (identifier and label) and I would like to exclude certain lines from this list.
<q-select
dense
v-model="DataOrganisation.id_ref_employeur"
:options="filtrageListeEmployeurs"
:disable="DisableEmployeur"
:rules="[val => !!val || 'L\'empleyur est obligatoire']"
options-dense
option-value="id"
option-label="nom"
emit-value
map-options
class="custom-q-select"
/>
My data
const OptionsListeEmployeurs = JSON.parse(localStorage.getItem('Liste_Employeurs'))
[{id: 10, nom: "AIRPL"},
{id: 9, nom: "Autres"},
{id: 2, nom: "CNRS"},
{id: 12, nom: "CTS"},...]
0: {id: 10, nom: "AIRPL"}
1: {id: 9, nom: "Autres"}
2: {id: 2, nom: "CNRS"}
3: {id: 12, nom: "CTS"}
4: {id: 11, nom: "ESB"}
5: {id: 7, nom: "ICAM"}
6: {id: 1, nom: "IMT Atlantique"}
id: 1
nom: "IMT Atlantique"
7: {id: 5, nom: "IMT (autre)"}
8: {id: 14, nom: "IMT Transfert"}
9: {id: 3, nom: "INRIA"}
10:{id: 13, nom: "UBO"}
11:{id: 4, nom: "Univ Nantes"}
My fonction
const filtrageListeEmployeurs = computed(() => {
return OptionsListeEmployeurs.filter(item => item.id !== [1])
})
How can I exclude lines 6 and 7?
thank you