Skip to content

Update method keeps adding "]]" #95

@ramon86

Description

@ramon86

If I use the "update" method from the API on a field and use a link with double square brackets to link to another file, repeating the action results in extra occurrences of "]]" at the end.

Example:

TestProp:: 
```dataviewjs
const {update} = app.plugins.plugins["metaedit"].api;
const activeFile = app.workspace.getActiveFile();
await update('TestProp', '[[Test]]', activeFile);
\```

(remove that last backslash, can't get formatting to work :))

The expectation is that this page simply always sets TestProp to [[Test]], but the second time it becomes [[Test]]]], the third time [[Test]]]]]], fourth [[Test]]]]]]]] etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions