Skip to content

Commit e91146a

Browse files
committed
Fix notes column loading slowly sometimes
The textareas in the notes column in the events table would sometimes take several seconds to load. This patch ensures that they load as fast as any other information in the events table.
1 parent 912fca3 commit e91146a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slices/eventSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export const fetchEvents = createAppAsyncThunk('events/fetchEvents', async (_, {
234234
let params: ReturnType<typeof getURLParams> & { getComments?: boolean } = getURLParams(state);
235235

236236
// Only if the notes column is enabled, fetch comment information for events
237-
if (state.table.columns.find(column => column.label === "EVENTS.EVENTS.TABLE.ADMINUI_NOTES" && !column.deactivated)) {
237+
if (state.events.columns.find(column => column.label === "EVENTS.EVENTS.TABLE.ADMINUI_NOTES" && !column.deactivated)) {
238238
params = {
239239
...params,
240240
getComments: true

0 commit comments

Comments
 (0)