Skip to content

Commit

Permalink
Fix undefined share object during expirationDate update
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Fenn-CS authored and backportbot[bot] committed Feb 20, 2024
1 parent 6ffffc2 commit 2a5a272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/src/mixins/SharesMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default {
*
* @param {Date} date
*/
onExpirationChange: debounce((date) => {
onExpirationChange: debounce(function(date) {
this.share.expireDate = this.formatDateToString(new Date(date))
}, 500),
/**
Expand Down

0 comments on commit 2a5a272

Please sign in to comment.