mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
Update table metadata when it's created [SCI-9501]
This commit is contained in:
parent
e131163f11
commit
7f8e515e88
1 changed files with 4 additions and 1 deletions
|
@ -134,7 +134,10 @@
|
|||
mounted() {
|
||||
this.loadTableData();
|
||||
|
||||
if (this.isNew) this.enableTableEdit();
|
||||
if (this.isNew) {
|
||||
// needs to first update to save metadata at table creation
|
||||
this.update(() => { this.enableTableEdit() });
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
enableTableEdit() {
|
||||
|
|
Loading…
Reference in a new issue