Fetch channels after successful creation of channels.

This commit is contained in:
SergeantPanda 2025-09-13 20:21:27 -05:00
parent 301a162e71
commit 7866eed613

View file

@ -560,6 +560,7 @@ export const WebsocketProvider = ({ children }) => {
// Refresh the channels table to show new channels
try {
await API.requeryChannels();
await useChannelsStore.getState().fetchChannels();
console.log('Channels refreshed after bulk creation');
} catch (error) {
@ -620,6 +621,7 @@ export const WebsocketProvider = ({ children }) => {
// Refresh channels
try {
await API.requeryChannels();
await useChannelsStore.getState().fetchChannels();
console.log(
'Channels refreshed after bulk creation completion'