Hi Paulina,
Its a screenshot of the data model of the document i received from prismic API
I went and created a new test slice this morning to test it again.
So I think there is more than 1 bug involved in this situation possibly,
1st: If I name an ImageView with just a number name. I cannot actually update the image besides the main one selected. In the below link / gif you will see this happen (i couldn't attach, too large)
https://imgur.com/a/bapQ1dj
Here is the model for the slice:
"testslice" : {
"type" : "Slice",
"fieldset" : "TestSlice",
"description" : "Slice to test bug",
"icon" : "3d_rotation",
"display" : "list",
"non-repeat" : {
"test_image" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ {
"name" : "2",
"width" : 1000,
"height" : null
}, {
"name" : "2_mobile",
"width" : 1000,
"height" : null
}, {
"name" : "3",
"width" : 1000,
"height" : null
}, {
"name" : "3_mobile",
"width" : 1000,
"height" : null
} ],
"label" : "test image"
}
}
},
"repeat" : { }
}
Here is what I received from the API
Bug 2: So now when I remove these numbered imageview names from the model, and update the document I still receive them from api.
step 1: Remove the views from the model: (this is what the model shall look like, Note i added a new view so i can update the document from the old version)
"testslice" : {
"type" : "Slice",
"fieldset" : "TestSlice",
"description" : "Slice to test bug",
"icon" : "3d_rotation",
"display" : "list",
"non-repeat" : {
"test_image" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ {
"name" : "2_mobile",
"width" : 1000,
"height" : null
}, {
"name" : "3_mobile",
"width" : 1000,
"height" : null
}, {
"name" : "4_mobile",
"width" : 1000,
"height" : null
} ],
"label" : "test image"
}
}
},
"repeat" : { }
}
step 2: Update the document with, (republish, I always edit some info then republish after a data model edit)
step 3: Rebuild app, fetch the new api. and when that is done, The imageview still has numbered names, even though I removed it from the model, republished and rebuilt
Hope this helps some!