Fix: take last stage from local storage

This commit is contained in:
Johannes Zillmann 2021-04-11 18:38:36 +02:00
parent 9fcb431a64
commit bf81416925
2 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,6 @@
export let groupingEnabled = true;
export let onlyRelevantItems = true;
let { pagePinned } = pageControl;
$: canNext = $debugStage + 1 < stageNames.length;
$: canPrev = $debugStage > 0;
</script>

View File

@ -9,6 +9,9 @@ export function debugFromParams(defaultValue: boolean): boolean {
}
export function debugStageFromParams(defaultValue: number): number {
if (!params.has('stage')) {
return defaultValue;
}
const stage = +params.get('stage');
if (!Number.isInteger(stage)) {
return defaultValue;