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

Multis within ObjectLists will Only Allow One Instance #637

Open ChristinWhite opened 3 months ago

ChristinWhite commented 3 months ago

Issue

I'm not sure if ObjectLists were designed to let people use them for nested arrays rather than having ObjectList > Object > Non-Object Properties but it does save a couple of clicks and keeps things a tad bit cleaner.

This mostly works great except for an issue with using Multis directly nested in an ObjectList where you can define only a single instance, if you try to create a second instance of multi the first instance and any other associated properties are instantly deleted.

This may be easier to just show (please forgive how slow it is, CleanShot seems to slow my machine to a crawl when recording after a recent update).

Desired Function

I'd love to be able to have

ObjectList:
  - Property one: Instance one
    Property two: Value from <multi>
  - Property one: Instance two
    Property Two: value from <multi>

Notes

I haven't tried every other property type but input, select, boolean and object do not seem to have a Highlander complex.

Workaround

We can use ObjectList > Object > Multi:

ObjectList:
  - Object[0]
      - Property one: Instance one
        Property two: Value from <multi> 
  - Object[1]
      - Property one: Instance two
        Property two: Value from <multi> 

Environment

Obsidian: 1.5.11 Metadata Menu: 0.8.5

ChristinWhite commented 3 months ago

I thought I had it nailed down to ObjectList > Multi is always broken and ObjectList > Object > Multi always works but I was wrong on both counts so I'm not sure what is going wrong at this point.

CleanShot 2024-03-15 at 18 12 16@2x

Maybe it's a depth issue instead?