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(() => {
|
||||
console.log("INDEXING");
|
||||
setIsIndexingRepacks(true);
|
||||
repacksWorker.postMessage("INDEX_REPACKS");
|
||||
|
||||
repacksWorker.onmessage = () => {
|
||||
console.log("INDEXING COMPLETE");
|
||||
setIsIndexingRepacks(false);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("CALLED");
|
||||
indexRepacks();
|
||||
}, [indexRepacks]);
|
||||
|
||||
|
@ -11,8 +11,6 @@ export function CloudSyncFilesModal({
|
||||
}: CloudSyncFilesModalProps) {
|
||||
const { backupPreview } = useContext(cloudSyncContext);
|
||||
|
||||
console.log(backupPreview);
|
||||
|
||||
const files = useMemo(() => {
|
||||
if (!backupPreview) {
|
||||
return [];
|
||||
|
@ -29,7 +29,6 @@ export function HeroPanel({ isHeaderStuck }: HeroPanelProps) {
|
||||
const [latestRepack] = repacks;
|
||||
|
||||
if (latestRepack) {
|
||||
console.log(latestRepack);
|
||||
const lastUpdate = format(latestRepack.uploadDate!, "dd/MM/yyyy");
|
||||
const repacksCount = repacks.length;
|
||||
|
||||
|
@ -64,8 +64,6 @@ export function EditProfileModal(
|
||||
const { showSuccessToast, showErrorToast } = useToast();
|
||||
|
||||
const onSubmit = async (values: FormValues) => {
|
||||
console.log(values);
|
||||
|
||||
return patchUser(values)
|
||||
.then(async () => {
|
||||
await Promise.allSettled([fetchUserDetails(), getUserProfile()]);
|
||||
@ -120,8 +118,6 @@ export function EditProfileModal(
|
||||
return { imagePath: null };
|
||||
});
|
||||
|
||||
console.log(imagePath);
|
||||
|
||||
onChange(imagePath);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user