Wiadomość o błędzie została wysłana do twórców.
+
+
+
+
+
setIsOpenExtension(true)}
+ >
+ Dalej nie działa? Zobacz co możesz zrobić.
+
+
+ {openExtension && (
+ <>
+
+ Aplikacja prawdopodbnie zawiera błędne dane.
+
+ Pobierz wszystkie grafiki i wyczyść dane aplikacji.
+
+
+
+ >
+ )}
);
diff --git a/src/components/common-components/modal/modal.component.tsx b/src/components/common-components/modal/modal.component.tsx
index 967866a91..c3d145b58 100644
--- a/src/components/common-components/modal/modal.component.tsx
+++ b/src/components/common-components/modal/modal.component.tsx
@@ -90,7 +90,7 @@ export interface ModalOptions {
export default function DefaultModal(options: ModalOptions): JSX.Element {
const { setOpen, open, title, body, footer, closeOptions, classNames } = options;
- let classes = useStyles(options.height ?? 350, options.width ?? 600);
+ let classes = useStyles(options.height ?? 450, options.width ?? 600);
classes = classNames ? classNames : classes;
const handleClose = (): void => {
diff --git a/src/helpers/file.helper.ts b/src/helpers/file.helper.ts
index 7aff43a49..533ca1bfa 100644
--- a/src/helpers/file.helper.ts
+++ b/src/helpers/file.helper.ts
@@ -39,7 +39,7 @@ export class FileHelper {
}
const zipFile = await zip.generateAsync({ type: "blob" });
const timestamp = new Date().toLocaleDateString("pl").replaceAll(".", "_");
- this.saveFileAs(zipFile, `historia_${timestamp}`);
+ this.saveFileAs(zipFile, `historia_${timestamp}.zip`);
}
private static splitWorkbooksInDirs(workbooks): FilenamesToDirnameDict {
@@ -94,7 +94,6 @@ export class FileHelper {
const docs = await new LocalStorageProvider().getAllSchedules();
const workbooks: WorkbookToFilename = {};
-
Object.keys(docs)
.filter((revisionKey) => !docs[revisionKey].isAutoGenerated)
.forEach((revisionKey) => {
diff --git a/src/logic/schedule-exporter/worker-export.logic.ts b/src/logic/schedule-exporter/worker-export.logic.ts
index 51e59b262..582e67579 100644
--- a/src/logic/schedule-exporter/worker-export.logic.ts
+++ b/src/logic/schedule-exporter/worker-export.logic.ts
@@ -28,7 +28,7 @@ export class WorkerExportLogic {
const workersInfoArray = WorkerExportLogic.createWorkersInfoSection(this.scheduleModel);
const colLens = workersInfoArray[0].map((_, colIndex) =>
- Math.max(...workersInfoArray.map((row) => row[colIndex].toString().length))
+ Math.max(...workersInfoArray.map((row) => row[colIndex]?.toString().length ?? 0))
);
workSheet.addRows(workersInfoArray);