flit-modulo-exportacoes 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -118,7 +118,7 @@ function retornarDiferencaMinutosHorarios(dataHora1, dataHora2) {
|
|
|
118
118
|
function retornaNumeroMinutosPrevistosEscala(periodosJornadaPrevista) {
|
|
119
119
|
let totalMinutosEscala = 0;
|
|
120
120
|
let ultimaDataHora = undefined;
|
|
121
|
-
periodosJornadaPrevista.forEach(periodo => {
|
|
121
|
+
(periodosJornadaPrevista ?? []).forEach(periodo => {
|
|
122
122
|
if (periodo?.entrada?.hora && periodo?.saida?.hora) {
|
|
123
123
|
let horaEntradaEscala = new Date(0, 0, 0, 0, 0, 0, 0);
|
|
124
124
|
horaEntradaEscala.setHours(Number.parseInt(periodo.entrada.hora.split(':')[0]), Number.parseInt(periodo.entrada.hora.split(':')[1]), 0, 0);
|