feat(views/table): insert child note

This commit is contained in:
Elian Doran
2025-07-14 13:37:18 +03:00
parent 402540f483
commit c13969217c
3 changed files with 22 additions and 3 deletions

View File

@@ -229,8 +229,8 @@ export default class TableView extends ViewMode<StateInfo> {
console.log("Save attributes", this.newAttribute);
}
addNewRowCommand({ customOpts }: { customOpts: CreateNoteOpts }) {
const parentNotePath = this.args.parentNotePath;
addNewRowCommand({ customOpts, parentNotePath: customNotePath }: { customOpts: CreateNoteOpts, parentNotePath?: string }) {
const parentNotePath = customNotePath ?? this.args.parentNotePath;
if (parentNotePath) {
const opts: CreateNoteOpts = {
activate: false,