I’m working on a Vue2 project integrating Airtable’s API, and I’m experiencing an unexpected rendering issue. When fetching records using Axios, the objects are displaying in a random sequence that doesn’t match the original order in my Airtable base.
Problem Details
- Data is successfully retrieved from Airtable
- Vue component renders records correctly
- Records appear in an inconsistent order (not matching Airtable base)
Current Implementation
mounted() {
this.fetchTableRecords();
},
methods: {
fetchTableRecords() {
axios({
url: `${this.apiUrl}${this.base}`,
headers: { 'Authorization': `Bearer ${this.apiKey}` }
}).then((response) => {
this.records = response.data.records;
});
}
}
I’ve tried multiple approaches but cannot maintain the original sorting. Any suggestions on how to preserve the Airtable record sequence during Vue rendering?