mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
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:
parent
dd291e1a16
commit
15e2b5cf3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue