t :Merge branch 'feat/datacenter' of https://github.com/toeverything/AFFiNE into feat/datacenter
This commit is contained in:
@@ -42,14 +42,15 @@ export const GeneralPage = ({ workspace }: { workspace: WorkspaceInfo }) => {
|
|||||||
};
|
};
|
||||||
const handleUpdateWorkspaceName = () => {
|
const handleUpdateWorkspaceName = () => {
|
||||||
console.log('currentWorkspace: ', currentWorkspace);
|
console.log('currentWorkspace: ', currentWorkspace);
|
||||||
updateWorkspace({ name: workspaceName }, currentWorkspace);
|
currentWorkspace &&
|
||||||
|
updateWorkspace({ name: workspaceName }, currentWorkspace);
|
||||||
};
|
};
|
||||||
|
|
||||||
const fileChange = async (file: File) => {
|
const fileChange = async (file: File) => {
|
||||||
// console.log('file: ', file);
|
// console.log('file: ', file);
|
||||||
// setUploading(true);
|
// setUploading(true);
|
||||||
const blob = new Blob([file], { type: file.type });
|
const blob = new Blob([file], { type: file.type });
|
||||||
updateWorkspace({ avatarBlob: blob }, currentWorkspace);
|
currentWorkspace && updateWorkspace({ avatarBlob: blob }, currentWorkspace);
|
||||||
};
|
};
|
||||||
|
|
||||||
return workspace ? (
|
return workspace ? (
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const Page: NextPageWithLayout = () => {
|
|||||||
<EditorHeader />
|
<EditorHeader />
|
||||||
<MobileModal />
|
<MobileModal />
|
||||||
|
|
||||||
{currentPage && (
|
{currentPage && currentWorkspace && (
|
||||||
<DynamicBlocksuite
|
<DynamicBlocksuite
|
||||||
page={currentPage}
|
page={currentPage}
|
||||||
workspace={currentWorkspace}
|
workspace={currentWorkspace}
|
||||||
|
|||||||
Reference in New Issue
Block a user