Better mutation errors and fix workspace creation

This commit is contained in:
Gregory Schier committed 2025-01-15 07:40:35 -08:00
1 parent 0e21d901cd
commit 3614c2acd5
8 files changed
+31 -16

No files matched your search

@@ -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;
+1 -1
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