mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 01:35:17 +00:00
fix: set showFields value while creating a new view
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -555,6 +555,16 @@ export default {
|
||||
loading: false
|
||||
}),
|
||||
computed: {
|
||||
newViewParams() {
|
||||
if (!this.showFields) {
|
||||
return {}
|
||||
}
|
||||
const showFields = { ...this.showFields }
|
||||
Object.keys(showFields).forEach((k) => {
|
||||
showFields[k] = true
|
||||
})
|
||||
return { showFields }
|
||||
},
|
||||
selectedViewIdLocal: {
|
||||
set(val) {
|
||||
const view = (this.viewsList || []).find(v => v.id === val)
|
||||
@@ -629,6 +639,7 @@ export default {
|
||||
try {
|
||||
this.copyViewRef = this.copyViewRef || {
|
||||
query_params: JSON.stringify({
|
||||
...this.newViewParams,
|
||||
fieldsOrder: JSON.parse(mainView.query_params).fieldsOrder
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user