Skip to content

Commit

Permalink
Fix a bug with saving folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Oct 21, 2024
1 parent 5f1e34c commit f806b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions app/src/app/apps/app/files/folder.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,11 +707,13 @@ export class FolderComponent {

async saveFolder(entry: Record | undefined | null, data: DialogData) {
if (entry) {
// Will this work?
entry.tags['name'] = data.name;
entry.tags['entryType'] = data.entryType;
const tags = {
name: data.name,
entryType: data.entryType,
};

const { status } = await entry.update({
tags,
data: {},
});

Expand Down
5 changes: 3 additions & 2 deletions app/src/app/apps/app/notes/notes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ export class NotesComponent implements OnDestroy {
data,
});

await record.send();

console.log('Record status:', status);

const { status: status2 } = await entry.record.send();
console.log('Status 2:', status2);
} else {
const { record, status } = await this.identity.web5.dwn.records.create({
data: data,
Expand Down

0 comments on commit f806b4f

Please sign in to comment.