mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
committed by
GitHub
parent
2a587f6cb1
commit
d9388d4535
@@ -79,7 +79,7 @@ const initAsyncEvents = (options: AsyncEventOptions) => {
|
||||
try {
|
||||
lastReceivedEventId = localStorage.getItem(LOCALSTORAGE_KEY);
|
||||
} catch (err) {
|
||||
console.warn('failed to fetch last event Id from localStorage');
|
||||
console.warn('Failed to fetch last event Id from localStorage');
|
||||
}
|
||||
|
||||
const fetchEvents = makeApi<
|
||||
@@ -114,7 +114,7 @@ const initAsyncEvents = (options: AsyncEventOptions) => {
|
||||
try {
|
||||
localStorage.setItem(LOCALSTORAGE_KEY, lastReceivedEventId as string);
|
||||
} catch (err) {
|
||||
console.warn('Error saving event ID to localStorage', err);
|
||||
console.warn('Error saving event Id to localStorage', err);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -138,7 +138,7 @@ const initAsyncEvents = (options: AsyncEventOptions) => {
|
||||
const component = componentsByJobId[asyncEvent.job_id];
|
||||
if (!component) {
|
||||
console.warn(
|
||||
'component not found for job_id',
|
||||
'Component not found for job_id',
|
||||
asyncEvent.job_id,
|
||||
);
|
||||
return setLastId(asyncEvent);
|
||||
@@ -156,7 +156,7 @@ const initAsyncEvents = (options: AsyncEventOptions) => {
|
||||
);
|
||||
break;
|
||||
default:
|
||||
console.warn('received event with status', asyncEvent.status);
|
||||
console.warn('Received event with status', asyncEvent.status);
|
||||
}
|
||||
|
||||
return setLastId(asyncEvent);
|
||||
|
||||
Reference in New Issue
Block a user