Use stable array/object constants

This commit is contained in:
schroda
2026-03-20 03:02:52 +01:00
parent fcf1c7fa3f
commit 9ce273b5ce
19 changed files with 44 additions and 24 deletions

View File

@@ -6,6 +6,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { STABLE_EMPTY_ARRAY } from '@/base/Base.constants.ts';
import Stack from '@mui/material/Stack';
import Box from '@mui/material/Box';
import MenuItem from '@mui/material/MenuItem';
@@ -32,7 +33,7 @@ const BaseReaderNavBarDesktopChapterNavigation = ({
currentChapterNumber,
previousChapter,
nextChapter,
chapters = [],
chapters = STABLE_EMPTY_ARRAY,
readerThemeDirection,
}: {
currentChapterId: ChapterIdInfo['id'] | undefined;