Skip to content

Commit

Permalink
fix(widget): fix errors on public shares that includes a tables widget (
Browse files Browse the repository at this point in the history
#503)

Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian authored Aug 31, 2023
1 parent c6ca27e commit dafb788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/ncTable/mixins/magicFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export const MagicFields = {
label: t('tables', 'Me (user ID)'),
icon: 'icon-user',
goodFor: [ColumnTypes.TextLine, ColumnTypes.Selection, ColumnTypes.SelectionMulti, ColumnTypes.TextRich, ColumnTypes.TextLink],
replace: getCurrentUser().uid,
replace: getCurrentUser()?.uid,
}),
MyName: new MagicField({
id: 'my-name',
label: t('tables', 'Me (name)'),
icon: 'icon-user',
goodFor: [ColumnTypes.TextLine, ColumnTypes.Selection, ColumnTypes.SelectionMulti, ColumnTypes.TextRich, ColumnTypes.TextLink],
replace: getCurrentUser().displayName,
replace: getCurrentUser()?.displayName,
}),
Checked: new MagicField({
id: 'checked',
Expand Down

0 comments on commit dafb788

Please sign in to comment.