diff --git a/sakai-js/package.json b/sakai-js/package.json index 6c8a68d4..8c6bc6dd 100644 --- a/sakai-js/package.json +++ b/sakai-js/package.json @@ -15,7 +15,7 @@ "next": "13.2.3", "primeflex": "3.3.0", "primeicons": "^6.0.1", - "primereact": "9.2.2", + "primereact": "9.2.3", "react": "18.2.0", "react-dom": "18.2.0" }, diff --git a/sakai-ts/layout/AppConfig.tsx b/sakai-ts/layout/AppConfig.tsx index e4026a8b..f6181969 100644 --- a/sakai-ts/layout/AppConfig.tsx +++ b/sakai-ts/layout/AppConfig.tsx @@ -37,7 +37,7 @@ const AppConfig = (props: AppConfigProps) => { }; const changeTheme = (theme: string, colorScheme: string) => { - PrimeReact.changeTheme(layoutConfig.theme, theme, 'theme-css', () => { + PrimeReact.changeTheme?.(layoutConfig.theme, theme, 'theme-css', () => { setLayoutConfig((prevState: LayoutConfig) => ({ ...prevState, theme, colorScheme })); }); }; diff --git a/sakai-ts/package-lock.json b/sakai-ts/package-lock.json index c6808ece..482f2533 100644 --- a/sakai-ts/package-lock.json +++ b/sakai-ts/package-lock.json @@ -18,7 +18,7 @@ "next": "13.2.3", "primeflex": "3.3.0", "primeicons": "^6.0.1", - "primereact": "9.2.2", + "primereact": "9.2.3", "react": "18.2.0", "react-dom": "18.2.0", "typescript": "5.0.4" @@ -2876,9 +2876,9 @@ "integrity": "sha512-KDeO94CbWI4pKsPnYpA1FPjo79EsY9I+M8ywoPBSf9XMXoe/0crjbUK7jcQEDHuc0ZMRIZsxH3TYLv4TUtHmAA==" }, "node_modules/primereact": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/primereact/-/primereact-9.2.2.tgz", - "integrity": "sha512-GGkxLHOdQot5DYW9Z7vTPPaDwzjvnderzLWAXda220teNScAJNtXCIqR3QESi4c9OaNbGD4IlBlhXr++z8fjsw==", + "version": "9.2.3", + "resolved": "https://registry.npmjs.org/primereact/-/primereact-9.2.3.tgz", + "integrity": "sha512-LIkVpgH2EZOn0CViZ/vFxBLWgK/ULYYYNTFch6CUvvJ2HUDnn3sAxII7ltblwEmT8hryCiEHDU/AiG8cqXVmNA==", "dependencies": { "@types/react-transition-group": "^4.4.1", "react-transition-group": "^4.4.1" diff --git a/sakai-ts/package.json b/sakai-ts/package.json index 55c64f14..b9b85867 100644 --- a/sakai-ts/package.json +++ b/sakai-ts/package.json @@ -21,7 +21,7 @@ "chart.js": "4.2.1", "primeflex": "3.3.0", "primeicons": "^6.0.1", - "primereact": "9.2.2", + "primereact": "9.2.3", "typescript": "5.0.4" }, "devDependencies": {