@sumaris-net/ngx-components 2.4.28 → 2.4.29
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/esm2020/src/app/shared/pipes/duration.pipe.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/pipes/duration.pipe.d.ts +1 -1
|
@@ -3323,7 +3323,7 @@ class DurationPipe {
|
|
|
3323
3323
|
transform(value, args) {
|
|
3324
3324
|
if (!value)
|
|
3325
3325
|
return '';
|
|
3326
|
-
const unit = args
|
|
3326
|
+
const unit = args?.unit || args || 'hours';
|
|
3327
3327
|
// try with moment
|
|
3328
3328
|
const duration = toDuration(value, unit);
|
|
3329
3329
|
const days = duration.days();
|