in table config component add name to headers if it does not exist so it can be hidden

This commit is contained in:
Jamie V 2025-04-22 13:07:22 -07:00
parent 21ae9f45c1
commit b98fa58e18

View File

@ -104,6 +104,15 @@ export default {
},
methods: {
updateHeaders(headers) {
// add name column if it doesn't exist,
// it's always the first column when it's manually added
if (!headers.name) {
headers = {
name: 'Name',
...headers
};
}
this.headers = headers;
},
toggleColumn(key) {