auto-git:
[change] src/app/App.tsx
This commit is contained in:
@@ -536,6 +536,27 @@ interface AppProps {
|
||||
initialStatusMessage?: string;
|
||||
}
|
||||
|
||||
function mergeAutosaveResults(
|
||||
results: SaveSceneDocumentDraftResult[]
|
||||
): SaveSceneDocumentDraftResult {
|
||||
const errorResult = results.find((result) => result.status === "error");
|
||||
|
||||
if (errorResult !== undefined) {
|
||||
return errorResult;
|
||||
}
|
||||
|
||||
const skippedResult = results.find((result) => result.status === "skipped");
|
||||
|
||||
if (skippedResult !== undefined) {
|
||||
return skippedResult;
|
||||
}
|
||||
|
||||
return {
|
||||
status: "saved",
|
||||
message: "Autosave updated."
|
||||
};
|
||||
}
|
||||
|
||||
interface Vec2Draft {
|
||||
x: string;
|
||||
y: string;
|
||||
|
||||
Reference in New Issue
Block a user