@processmaker/screen-builder 2.77.1 → 2.77.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "2.77.1",
3
+ "version": "2.77.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -208,7 +208,11 @@ export default {
208
208
  this.$dataProvider.get(endpoint).then(response => {
209
209
  const fileInfo = response.data.data ? _.get(response, 'data.data.0', null) : _.get(response, 'data', null);
210
210
  if (fileInfo) {
211
- this.filesInfo.push(fileInfo);
211
+ if (typeof this.value === 'number' && this.filesInfo.length > 0) {
212
+ this.filesInfo[0] = fileInfo;
213
+ } else {
214
+ this.filesInfo.push(fileInfo);
215
+ }
212
216
  } else {
213
217
  console.log(this.$t('File ID does not exist'));
214
218
  }