Skip to content

Commit 20f4e77

Browse files
committed
fix
1 parent 6dd133d commit 20f4e77

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,11 @@ function App() {
111111

112112
useEffect(() => {
113113
console.log('***********', dataUrls.length, initCreate, initCreateText)
114-
if (dataUrls.length && initCreate) {
114+
if (dataUrls.length) {
115115
initFn.run();
116-
setInitCreate(false);
117116
}
118-
if (initCreateText && initCreate) {
117+
if (initCreateText) {
119118
initTextFn.run();
120-
setInitCreate(false);
121119
}
122120
}, [initCreate, dataUrls, initCreateText]);
123121

0 commit comments

Comments
 (0)