fix(ui): imageDropped listener

This commit is contained in:
psychedelicious 2024-07-24 19:34:49 +10:00
parent 5fa65e5cc6
commit cb53108041

View File

@ -4,7 +4,6 @@ import type { AppStartListening } from 'app/store/middleware/listenerMiddleware'
import { parseify } from 'common/util/serialize'; import { parseify } from 'common/util/serialize';
import { import {
caImageChanged, caImageChanged,
iiImageChanged,
ipaImageChanged, ipaImageChanged,
layerImageAdded, layerImageAdded,
rgIPAdapterImageChanged, rgIPAdapterImageChanged,
@ -111,18 +110,6 @@ export const addImageDroppedListener = (startAppListening: AppStartListening) =>
return; return;
} }
/**
* Image dropped on Raster layer
*/
if (
overData.actionType === 'SET_INITIAL_IMAGE' &&
activeData.payloadType === 'IMAGE_DTO' &&
activeData.payload.imageDTO
) {
dispatch(iiImageChanged({ imageDTO: activeData.payload.imageDTO }));
return;
}
/** /**
* Image dropped on node image field * Image dropped on node image field
*/ */