@finema/finework-layer 2.0.33 → 2.0.34
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.34](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.33...2.0.34) (2026-08-18)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* improve file deletion logic in feedback ticket form ([1a5b7e4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/1a5b7e432e6677510d5c39744616b07601e55b30))
|
|
8
|
+
|
|
3
9
|
## [2.0.33](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.32...2.0.33) (2026-08-18)
|
|
4
10
|
|
|
5
11
|
## [2.0.32](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.31...2.0.32) (2026-08-18)
|
|
@@ -199,7 +199,19 @@ const formFields = createFormFields(() => [
|
|
|
199
199
|
change: () => {},
|
|
200
200
|
success: () => {},
|
|
201
201
|
delete: (file: any) => {
|
|
202
|
-
|
|
202
|
+
const currentFiles = form.values.files || []
|
|
203
|
+
|
|
204
|
+
const nextFiles
|
|
205
|
+
= typeof file === 'number'
|
|
206
|
+
? currentFiles.filter((_: any, index: number) => index !== file)
|
|
207
|
+
: currentFiles.filter(
|
|
208
|
+
(f: any) =>
|
|
209
|
+
f.id !== file?.id
|
|
210
|
+
&& f.path !== file?.path
|
|
211
|
+
&& f.url !== file?.url,
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
form.setFieldValue('files', nextFiles.length ? nextFiles : null)
|
|
203
215
|
},
|
|
204
216
|
},
|
|
205
217
|
},
|