{#if wall != undefined}
{#if isWall(wall)} {#each categories as category, catIndex}
{category.name}
{#if isEditor}
{ catToRename = category; newCatName = category.name; showRenameCategory = true; }}>
{/if}
{#each category.questions as question, queIndex}
{ if (onclickIds) onclickIds(category._id, question._id); }} >
{question.points >= 0 ? question.points : "???"}
{/each} {/each} {:else} {#each wall.categories as category, catIndex}
{category.name}
{#each category.questions as question, queIndex}
{ if (onclick) onclick(catIndex, queIndex); }} >
{question.points >= 0 ? question.points : "???"}
{/each} {/each} {/if}
{:else}
Wall is undefined
{/if}
{#snippet header()}
Kategorie umbenennen
{/snippet}
{#if error.length > 0}
{error}
{/if}