Skip to content

Commit f460705

Browse files
dazy-dsmhordynski
authored andcommitted
fix: build UI (#796)
1 parent b4bb8d6 commit f460705

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/build-ui.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
contents: write
2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.GH_TOKEN }}
2224

2325
- name: Set up Node.js
2426
uses: actions/setup-node@v4
@@ -41,5 +43,3 @@ jobs:
4143
git add packages/ragbits-chat/src/ragbits/chat/ui-build
4244
git commit -m "Automated UI build"
4345
git push origin HEAD
44-
env:
45-
GH_TOKEN: ${{ secrets.GH_TOKEN }}

typescript/ui/src/core/contexts/ConfigContext/ConfigContextProvider.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropsWithChildren, useEffect, useLayoutEffect, useMemo } from "react";
1+
import { PropsWithChildren, useEffect, useMemo } from "react";
22
import { ConfigContext } from "./ConfigContext";
33
import { useRagbitsCall } from "@ragbits/api-client-react";
44
import { FeedbackFormPluginName } from "../../../plugins/FeedbackPlugin";
@@ -57,12 +57,11 @@ export function ConfigContextProvider({ children }: PropsWithChildren) {
5757
pluginManager.activate(SharePluginName);
5858
}, [config.data]);
5959

60-
// Load config on mount
6160
if (!config.data && !config.error && !config.isLoading) {
6261
fetchConfig();
6362
}
6463

65-
useLayoutEffect(() => {
64+
useEffect(() => {
6665
document.title = CONFIG_LOADING_PAGE_TITLE;
6766
}, []);
6867

0 commit comments

Comments
 (0)