mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(kanban): request default board explicitly (#21819)
This commit is contained in:
parent
eb3db231dc
commit
8954537f95
2 changed files with 43 additions and 3 deletions
6
plugins/kanban/dashboard/dist/index.js
vendored
6
plugins/kanban/dashboard/dist/index.js
vendored
|
|
@ -385,7 +385,7 @@
|
|||
|
||||
// --- load config once ---------------------------------------------------
|
||||
useEffect(function () {
|
||||
SDK.fetchJSON(`${API}/config`)
|
||||
SDK.fetchJSON(withBoard(`${API}/config`, board))
|
||||
.then(function (c) {
|
||||
setConfig(c);
|
||||
if (!configApplied) {
|
||||
|
|
@ -418,7 +418,7 @@
|
|||
|
||||
// --- load list of boards for the switcher ------------------------------
|
||||
const loadBoardList = useCallback(function () {
|
||||
return SDK.fetchJSON(`${API}/boards`)
|
||||
return SDK.fetchJSON(withBoard(`${API}/boards`, board))
|
||||
.then(function (data) {
|
||||
const boards = (data && data.boards) || [];
|
||||
setBoardList(boards);
|
||||
|
|
@ -640,7 +640,7 @@
|
|||
if (slug && payload.switch) switchBoard(slug);
|
||||
return res;
|
||||
});
|
||||
}, [loadBoardList, switchBoard]);
|
||||
}, [loadBoardList, switchBoard, board]);
|
||||
|
||||
const deleteBoard = useCallback(function (slug) {
|
||||
if (!slug || slug === "default") return Promise.resolve();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue