Skip to content

logseq.updateSettings API does not update array types correctly #4447

@haydenull

Description

@haydenull

What happened?

logseq.updateSettings API does not update array types correctly.

Reproduce the Bug

  1. exec logseq.updateSettings({ foo: [ {a: 1}, { a: 2 } ] }) set initial settings.
  2. exec logseq.updateSettings({ foo: [ {a: 1} ] }) delete an item from foo, but settings will not change.

Expected Behavior

when deleting an item from the array, settings change correctly.

Screenshots

No response

Desktop Platform Information

No response

Mobile Platform Information

No response

Additional Context

My current solution is:

exec logseq.updateSettings({ foo: 1 }) before delete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✔ DONE

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions