Skip to content

Commit 868829e

Browse files
Merge pull request #479 from nextcloud/bugfix/475/fix-default-options-for-unit-and-after
fix(UI): Fix default settings for "Unit" and "From date of"
2 parents 6bfd0a9 + 26d15f5 commit 868829e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AdminSettings.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ export default {
130130
{ id: 2, label: t('files_retention', 'Months') },
131131
{ id: 3, label: t('files_retention', 'Years') },
132132
],
133-
newUnit: [],
133+
newUnit: {},
134134

135135
afterOptions: [
136136
{ id: 0, label: t('files_retention', 'Creation') },
137137
{ id: 1, label: t('files_retention', 'Last modification') },
138138
],
139-
newAfter: [],
139+
newAfter: {},
140140

141141
newAmount: '14', // FIXME TextField does not accept numbers …
142142

@@ -266,8 +266,8 @@ export default {
266266
resetForm() {
267267
this.newTag = -1
268268
this.newAmount = '14'
269-
this.newUnit = [this.unitOptions[0]]
270-
this.newAfter = [this.afterOptions[0]]
269+
this.newUnit = this.unitOptions[0]
270+
this.newAfter = this.afterOptions[0]
271271
},
272272
},
273273
}

0 commit comments

Comments
 (0)