From 20228b21daec0d1d504acf436906ffa8a1e706c5 Mon Sep 17 00:00:00 2001
From: ncamera <nico_camera98@hotmail.com>
Date: Mon, 21 Nov 2022 01:27:00 -0300
Subject: [PATCH] Arreglo para crear un archivo sin contenido

---
 Frontend Angular 4/src/app/layout/matefun/matefun.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts b/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts
index 8149c33..0312254 100755
--- a/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts	
+++ b/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts	
@@ -841,7 +841,7 @@ export class MateFunComponent {
 
     var archivo: Archivo = new Archivo();
     archivo.cedulaCreador = this.authService.getUser().cedula;
-    archivo.contenido = fileContent;
+    archivo.contenido = fileContent || "";
     archivo.nombre = nombre;
     archivo.directorio = false;
     archivo.padreId = padreId;
-- 
GitLab