Skip to content

[Bug] Duplication of images in GraphQL #306

Answered by logeshswell
josias-hosang asked this question in Help
Discussion options

You must be logged in to vote

@josias-hosang cc: @Strongeyed I can confirm that it is a bug with the admin dashboard but NOT in frontend APIs (graphql/swell-js).

The issue is, the client makes the PUT request with the duplicate file details of the uploaded image (for some scenario that is yet to be identified) as follows:

PUT /products/product_id

{
  "$set": {
    "images": [
      {
        "file": {
          "id": "file-id-1",
          "md5": "md5-1",
          "url": "url-1"
        },
        "id": "id-1"
      },
      {
        "file": {
          "id": "file-id-2",
          "md5": "md5-2",
          "url": "url-2"
        },
        "id": "id-2"
      },
      {
        "file": {
          "id": "file-id-2",…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@logeshswell
Comment options

@josias-hosang
Comment options

@logeshswell
Comment options

@josias-hosang
Comment options

@logeshswell
Comment options

Answer selected by logeshswell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bug Something isn't working swell-admin
3 participants