atproto explorer

reset validate when opening dialog

juli.ee b3aa53fc 1c165f01

verified
+5 -1
+5 -1
src/components/create.tsx
··· 3 3 import { getSession, OAuthUserAgent } from "@atcute/oauth-browser-client"; 4 4 import { remove } from "@mary/exif-rm"; 5 5 import { useNavigate, useParams } from "@solidjs/router"; 6 - import { createSignal, For, onCleanup, onMount, Show } from "solid-js"; 6 + import { createEffect, createSignal, For, onCleanup, onMount, Show } from "solid-js"; 7 7 import { Editor, editorView } from "../components/editor.jsx"; 8 8 import { agent } from "../components/login.jsx"; 9 9 import { setNotif } from "../layout.jsx"; ··· 57 57 : "Unset" 58 58 ); 59 59 }; 60 + 61 + createEffect(() => { 62 + if (openDialog()) setValidate(undefined); 63 + }); 60 64 61 65 const createRecord = async (formData: FormData) => { 62 66 const repo = formData.get("repo")?.toString();