|
|
@ -34,12 +34,8 @@ export default function Component({ service }) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let currentLayer = "-";
|
|
|
|
const printStatsInfo = printStats.result.status.print_stats.info ?? {};
|
|
|
|
let totalLayer = "-";
|
|
|
|
const { current_layer: currentLayer = "-", total_layer: totalLayer = "-" } = printStatsInfo;
|
|
|
|
if (printStats.result.status.print_stats.info.total_layer !== null) {
|
|
|
|
|
|
|
|
currentLayer = printStats.result.status.print_stats.info.current_layer;
|
|
|
|
|
|
|
|
totalLayer = printStats.result.status.print_stats.info.total_layer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Container service={service}>
|
|
|
|
<Container service={service}>
|
|
|
|