fix: processing images indicator
This commit is contained in:
@ -39,8 +39,6 @@ export const Notifications = (onCompleteImage: () => void) => {
|
|||||||
const [accessToken] = createResource(getAccessToken);
|
const [accessToken] = createResource(getAccessToken);
|
||||||
|
|
||||||
const dataEventListener = (e: MessageEvent<unknown>) => {
|
const dataEventListener = (e: MessageEvent<unknown>) => {
|
||||||
debugger;
|
|
||||||
|
|
||||||
if (typeof e.data !== "string") {
|
if (typeof e.data !== "string") {
|
||||||
console.error("Error type is not string");
|
console.error("Error type is not string");
|
||||||
return;
|
return;
|
||||||
@ -100,7 +98,7 @@ export const Notifications = (onCompleteImage: () => void) => {
|
|||||||
|
|
||||||
upsertImageProcessing(
|
upsertImageProcessing(
|
||||||
Object.fromEntries(
|
Object.fromEntries(
|
||||||
images.filter(i => i.Status === 'complete').map((i) => [
|
images.filter(i => i.Status !== 'complete').map((i) => [
|
||||||
i.ID,
|
i.ID,
|
||||||
{
|
{
|
||||||
Type: "image",
|
Type: "image",
|
||||||
|
Reference in New Issue
Block a user