Show warning if there's uncommitted changes (#92)
This commit is contained in:
@@ -14,7 +14,7 @@ import { useChats } from "./useChats";
|
||||
import { useLoadApp } from "./useLoadApp";
|
||||
import { selectedAppIdAtom } from "@/atoms/appAtoms";
|
||||
import { useVersions } from "./useVersions";
|
||||
import { showError } from "@/lib/toast";
|
||||
import { showError, showUncommittedFilesWarning } from "@/lib/toast";
|
||||
import { useProposal } from "./useProposal";
|
||||
import { useSearch } from "@tanstack/react-router";
|
||||
import { useRunApp } from "./useRunApp";
|
||||
@@ -87,6 +87,9 @@ export function useStreamChat({
|
||||
setIsPreviewOpen(true);
|
||||
refreshAppIframe();
|
||||
}
|
||||
if (response.uncommittedFiles) {
|
||||
showUncommittedFilesWarning(response.uncommittedFiles);
|
||||
}
|
||||
refreshProposal(chatId);
|
||||
|
||||
// Keep the same as below
|
||||
|
||||
Reference in New Issue
Block a user