Better mutation errors and fix workspace creation

This commit is contained in:
Gregory Schier
2025-01-15 07:40:35 -08:00
parent 0e21d901cd
commit 3614c2acd5
8 changed files with 31 additions and 16 deletions

View File

@@ -24,7 +24,6 @@ export function CreateWorkspaceDialog({ hide }: Props) {
className="pb-3 max-h-[50vh]"
onSubmit={async (e) => {
e.preventDefault();
if (!settingSyncDir) return;
const workspace = await upsertWorkspace.mutateAsync({ name });
if (workspace == null) return;

View File

@@ -16,7 +16,7 @@ export const Toasts = () => {
const toasts = useAtomValue(toastsAtom);
return (
<Portal name="toasts">
<div className="absolute right-0 bottom-0 z-20">
<div className="absolute right-0 bottom-0 z-50">
<AnimatePresence>
{toasts.map(({ message, ...props }: ToastInstance) => (
<Toast