mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
fix: e2e
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable filename-rules/match */
|
/* eslint-disable filename-rules/match */
|
||||||
import { useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { LogoImg } from '@toeverything/components/common';
|
import { LogoImg } from '@toeverything/components/common';
|
||||||
import {
|
import {
|
||||||
@@ -46,6 +46,13 @@ const requestPermission = async (workspace: string) => {
|
|||||||
export const FileSystem = () => {
|
export const FileSystem = () => {
|
||||||
const onSelected = useLocalTrigger();
|
const onSelected = useLocalTrigger();
|
||||||
const [error, setError] = useState(false);
|
const [error, setError] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (process.env['NX_E2E']) {
|
||||||
|
onSelected();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MuiGrid container>
|
<MuiGrid container>
|
||||||
<MuiSnackbar
|
<MuiSnackbar
|
||||||
|
|||||||
Reference in New Issue
Block a user