Skip to content

Commit 7200241

Browse files
committed
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 <[email protected]>
1 parent 1442477 commit 7200241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)