👔(backend) change field displayed on users endpoint
Change the field displayed on the users endpoint. We need the email field to be displayed.
This commit is contained in:
@@ -8,5 +8,4 @@
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
@@ -51,12 +51,12 @@ export const BlockNoteContent = ({ pad, provider }: BlockNoteContentProps) => {
|
||||
provider,
|
||||
fragment: provider.doc.getXmlFragment('document-store'),
|
||||
user: {
|
||||
name: userData?.name || userData?.email || 'Anonymous',
|
||||
name: userData?.email || 'Anonymous',
|
||||
color: randomColor(),
|
||||
},
|
||||
},
|
||||
});
|
||||
}, [provider, storedEditor, userData?.email, userData?.name]);
|
||||
}, [provider, storedEditor, userData?.email]);
|
||||
|
||||
useEffect(() => {
|
||||
setEditor(pad.id, editor);
|
||||
|
||||
Reference in New Issue
Block a user