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 {
caImageChanged,
iiImageChanged,
ipaImageChanged,
layerImageAdded,
rgIPAdapterImageChanged,
@ -111,18 +110,6 @@ export const addImageDroppedListener = (startAppListening: AppStartListening) =>
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
*/