mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
fix: removing backup folder before uploading
This commit is contained in:
parent
9405b0dcfc
commit
0f1ed20bbb
@ -41,18 +41,15 @@ export function RepacksContextProvider({ children }: RepacksContextProps) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const indexRepacks = useCallback(() => {
|
const indexRepacks = useCallback(() => {
|
||||||
console.log("INDEXING");
|
|
||||||
setIsIndexingRepacks(true);
|
setIsIndexingRepacks(true);
|
||||||
repacksWorker.postMessage("INDEX_REPACKS");
|
repacksWorker.postMessage("INDEX_REPACKS");
|
||||||
|
|
||||||
repacksWorker.onmessage = () => {
|
repacksWorker.onmessage = () => {
|
||||||
console.log("INDEXING COMPLETE");
|
|
||||||
setIsIndexingRepacks(false);
|
setIsIndexingRepacks(false);
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("CALLED");
|
|
||||||
indexRepacks();
|
indexRepacks();
|
||||||
}, [indexRepacks]);
|
}, [indexRepacks]);
|
||||||
|
|
||||||
|
@ -11,8 +11,6 @@ export function CloudSyncFilesModal({
|
|||||||
}: CloudSyncFilesModalProps) {
|
}: CloudSyncFilesModalProps) {
|
||||||
const { backupPreview } = useContext(cloudSyncContext);
|
const { backupPreview } = useContext(cloudSyncContext);
|
||||||
|
|
||||||
console.log(backupPreview);
|
|
||||||
|
|
||||||
const files = useMemo(() => {
|
const files = useMemo(() => {
|
||||||
if (!backupPreview) {
|
if (!backupPreview) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -29,7 +29,6 @@ export function HeroPanel({ isHeaderStuck }: HeroPanelProps) {
|
|||||||
const [latestRepack] = repacks;
|
const [latestRepack] = repacks;
|
||||||
|
|
||||||
if (latestRepack) {
|
if (latestRepack) {
|
||||||
console.log(latestRepack);
|
|
||||||
const lastUpdate = format(latestRepack.uploadDate!, "dd/MM/yyyy");
|
const lastUpdate = format(latestRepack.uploadDate!, "dd/MM/yyyy");
|
||||||
const repacksCount = repacks.length;
|
const repacksCount = repacks.length;
|
||||||
|
|
||||||
|
@ -64,8 +64,6 @@ export function EditProfileModal(
|
|||||||
const { showSuccessToast, showErrorToast } = useToast();
|
const { showSuccessToast, showErrorToast } = useToast();
|
||||||
|
|
||||||
const onSubmit = async (values: FormValues) => {
|
const onSubmit = async (values: FormValues) => {
|
||||||
console.log(values);
|
|
||||||
|
|
||||||
return patchUser(values)
|
return patchUser(values)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await Promise.allSettled([fetchUserDetails(), getUserProfile()]);
|
await Promise.allSettled([fetchUserDetails(), getUserProfile()]);
|
||||||
@ -120,8 +118,6 @@ export function EditProfileModal(
|
|||||||
return { imagePath: null };
|
return { imagePath: null };
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(imagePath);
|
|
||||||
|
|
||||||
onChange(imagePath);
|
onChange(imagePath);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user