Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Unable to use list field #296

Closed
logan-anderson opened this issue Jun 28, 2021 · 5 comments · Fixed by #304 or #309
Closed

Unable to use list field #296

logan-anderson opened this issue Jun 28, 2021 · 5 comments · Fixed by #304 or #309
Labels
bug Something isn't working

Comments

@logan-anderson
Copy link
Contributor

Description

When using a list field in my schema i get this error in the terminal.

react_devtools_backend.js:2560 Error: Unable to fetch, errors: 
	String cannot represent value: { value: "", label: "" }
    at LocalClient.request (index.js?cda2:309)

Steps to reproduce

  1. Clone mono repo
  2. Add the following field in a template.
{
              type: 'list',
              label: 'tags',
              name: 'tags',
              field: {
                component: 'text',
              },
},

You now are unable to load this page it can not fetch the content (get the error message above).

Expected result

The list field should work

Actual result

Cannot load content and get an error.

Tagging @jeffsee55 as this it probably related to #262

@logan-anderson logan-anderson added the bug Something isn't working label Jun 28, 2021
@logan-anderson logan-anderson changed the title Unable to use list field Unable to use list field Jun 28, 2021
@logan-anderson
Copy link
Contributor Author

Note: this also happens with reference-list

@logan-anderson
Copy link
Contributor Author

logan-anderson commented Jun 30, 2021

Issue still happening when on the latest version of tina-graphql-gateway-cli. I am assuming it Didn't get published with the latest version of tina-graphql

@ACoolTurtle
Copy link

@logan-anderson This error just showed up again on the Cloud API. How are you controlling it's versioning right now?

@jeffsee55
Copy link
Member

Sorry for the trouble @ACoolTurtle , we're working on versioning but for now it's a bit of a slower process that we need to do manually. The update should be out tomorrow so we'll circle back on this then.

@jeffsee55 jeffsee55 reopened this Jul 1, 2021
@logan-anderson
Copy link
Contributor Author

@ACoolTurtle @jeffsee55 I just tested this and it looks like it is fixed. Let us know if you run into any more issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
3 participants