Skip to content

Commit 2a5a272

Browse files
nfebebackportbot[bot]
authored andcommitted
Fix undefined share object during expirationDate update
In 04e8733 a regression was introduced. `this` means nothing inside arrow functions, hence this.share was referring to an undefined object and so all attempted updates for expiration dates would fail. Resolves : #43256 Signed-off-by: fenn-cs <fenn25.fn@gmail.com> [skip ci]
1 parent 6ffffc2 commit 2a5a272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default {
221221
*
222222
* @param {Date} date
223223
*/
224-
onExpirationChange: debounce((date) => {
224+
onExpirationChange: debounce(function(date) {
225225
this.share.expireDate = this.formatDateToString(new Date(date))
226226
}, 500),
227227
/**

0 commit comments

Comments
 (0)