Fix undefined share object during expirationDate update

In 04e8733721 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 : https://github.com/nextcloud/server/issues/43256

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
fenn-cs 2024-02-19 16:25:53 +01:00 committed by Git'Fellow
parent dd291e1a16
commit 15e2b5cf3d

View file

@ -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),
/**