fix: deepscan error and warning (#728)

This commit is contained in:
DiamondThree
2023-01-13 15:25:33 +08:00
committed by GitHub
parent 03ff4c3e3d
commit 7fb5aae8b5
21 changed files with 10 additions and 651 deletions
@@ -34,7 +34,7 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
{workspace.provider === 'affine' ? (
<div>
<StyledPublishContent>
{workspace?.published ? (
{workspace.published ? (
<>
<StyledPublishExplanation>
{t('Publishing')}
@@ -15,7 +15,7 @@ export const SyncPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
return (
<div>
<StyledPublishContent>
{workspace?.provider === 'local' ? (
{workspace.provider === 'local' ? (
<>
<StyledPublishExplanation>
{t('Sync Description', {
@@ -48,7 +48,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
{loaded && members.length === 0 && (
<Empty width={648} sx={{ marginTop: '60px' }} height={300} />
)}
{loaded && members.length && (
{loaded && members.length > 0 && (
<>
<StyledMemberTitleContainer>
<StyledMemberNameContainer>