mdelobelle / metadatamenu

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

fix #674

Open nedergaard opened 5 months ago

nedergaard commented 5 months ago

Fixed Select and Cycle field valueString throwing exception, e.g. when used in ObjectList's Item display template

nanderson868 commented 4 months ago

Wow, you beat me to it. I was about to come to arrive at the same solution before just now stumbling on to this. It took longer than it should have because my initial assumption was that it couldn't be that obvious.

Here's the corresponding changes to main.js that you can make yourself.

function valueString26(type) {
  switch (type) {
    case "Input":
      return valueString;
    case "Number":
      return valueString2;
    case "Select":
      return valueString;
    // return valueString4;
    case "Cycle":
      return valueString;
    // return valueString7;
    ...