question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue: Choice field not updating when `_` is used in the ID

See original GitHub issue

When using choice für an own content trype with an underscroe in “title” "title": "mydoc_sidebar" and after changing the frontmatter taxonomy from one choice to another or deleting the field. the underscore title name like in this example "title": "mydoc_sidebar" is not beeing written to the file.

After selecting another title name without an underscore "title": "Choice 2"the title with the underscore can be selected "title": "mydoc_sidebar" again.

This seems only to happen when like in this example there are qoutemarks set. sidebar: '' in the field.

 "frontMatter.taxonomy.contentTypes": [
    {
      "name": "default",
      "pageBundle": false,
      "fields": [
...
    {
      "name": "documentation",
      "pageBundle": false,
      "fields": [
        {
...
        {
          "title": "Sidebar",
          "name": "sidebar",
          "type": "choice",
          "choices": [
            {
              "id": "mydoc_sidebar",
              "title": "mydoc_sidebar"
            },
            {
              "id": "2",
              "title": "Choice 2"
            },
            {
              "id": "3",
              "title": "Choice 3"
            }
          ],
          "multiSelect": true
        },
...

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wemasoecommented, Jan 24, 2022

@estruyf thank you, it works 😃

0reactions
estruyfcommented, Jan 24, 2022

Thanks! This information helped a lot and should be fixed with the upcoming release. Already testable in the beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharepoint Custom Column Choices not updating
I've created a custom column with a handful of choices. I then tagged a number of pages with the appropriate values from my...
Read more >
Django - form's ChoiceField not updating immediately
So I'm wondering, what am I missing? Is there some way to force update the form? Does the form get cached and that's...
Read more >
Updating Site Column Choice Fields #273 - pnp/pnpjs - GitHub
I tried using a comma separated string but that generated error: "The property 'Choices' does not exist on type 'SP.Field'. Make sure to...
Read more >
Update a Choice Column in a flow - Nintex Community
I have a "choice" column in a workflow that only gets updating in a task. ... Create a form variable and then use...
Read more >
Flow choice field values do not update the picklist, text, or ...
000385593 · When I map my Flow Screen Choice Fields to salesforce object fields, either in an update, or record create, the choice...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found