mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
477 stars 27 forks source link

Editing Nested Fields in Dataviewjs is Broken #675

Open LynetteCullens opened 2 months ago

LynetteCullens commented 2 months ago

Dataviewjs Table Code

const {fieldModifier: f} = this.app.plugins.plugins["metadata-menu"].api; 
dv.table (["File", "mathLink", "AltNotation", "Dimensions", "LinkedDimensions", "StaticDimensions", "LinkedStaticDimensions", "MKS", "CGS", "FPS", "LinkedFormula"], 
    await Promise.all(dv.pages('"Glossary"').map(async p => [ 
        p.file.link,
        await f(dv, p, "mathLink"),
        await f(dv, p, "mathLink-blocks.AltNotation"), 
        await f(dv, p, "mathLink-blocks.Dimensions"),
        await f(dv, p, "mathLink-blocks.LinkedDimensions"), 
        await f(dv, p, "mathLink-blocks.StaticDimensions"),
        await f(dv, p, "mathLink-blocks.LinkedStaticDimensions"),
        await f(dv, p, "mathLink-blocks.MKS"),
        await f(dv, p, "mathLink-blocks.CGS"),
        await f(dv, p, "mathLink-blocks.FPS"),
        await f(dv, p, "mathLink-blocks.LinkedFormula"), 
        ]) 
)) 

Change The Table

LynetteCullens commented 2 months ago

612 I guess these are related.

LynetteCullens commented 2 months ago
---
fields:
  - name: mathLink
    type: Formula
    options: {} 
    autoUpdate: false
    path: ""
    id: ZWukl8
  - name: mathLink-blocks
    type: ObjectList
    options: {}
    path: ""
    id: VSe8dE
  - name: AltNotation
    type: Input
    options: {}
    path: VSe8dE
    id: E4RiFT
  - name: Dimensions
    type: Input
    options: {}
    path: VSe8dE
    id: GxsjIA
  - name: StaticDimensions
    type: Input
    options: {}
    path: VSe8dE
    id: fIYGua
  - name: MKS
    type: Input
    options: {}
    path: VSe8dE
    id: gSOKjZ
  - name: CGS
    type: Input
    options: {}
    path: VSe8dE
    id: KSTSXF
  - name: FPS
    type: Input
    options:
    path: VSe8dE
    id: GuqBpP
  - name: LinkedFormula
    type: Input
    options: 
    path: VSe8dE
    id: GYVn0Y
  - name: aliases
    type: Input
    options: {}
    path: ""
    id: MdiXOn
  - name: parent
    type: MultiFile
    options: {}
    path: ""
    id: rZeQiR
  - name: same
    type: MultiFile
    options: {}
    path: ""
    id: iMJoQ9
  - name: Type
    type: Select
    options:
      sourceType: ValuesList
      valuesList:
        "1": Dimension
        "2": Variable
        "3": Math Operation
        "4": Vocabulary
        "5": Sub_Variable
    path: ""
    id: Nj7xby
version: "2.8"
limit: 20
mapWithTag: false
icon: book-text
tagNames: 
filesPaths:
  - Glossary
bookmarksGroups: 
excludes: 
extends: 
savedViews: []
favoriteView: 
fieldsOrder:
  - ZWukl8
  - VSe8dE
  - E4RiFT
  - GxsjIA
  - fIYGua
  - gSOKjZ
  - KSTSXF
  - GuqBpP
  - GYVn0Y
  - MdiXOn
  - rZeQiR
  - iMJoQ9
  - Nj7xby
---
LynetteCullens commented 2 months ago

Update: Changing the parent field Type from ObjectList to Object fixed the issue. So I am assuming this is also related to #637