mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-16 09:15:59 -05:00
fix(ui): dnd to canvas broke
This commit is contained in:
@@ -51,17 +51,6 @@ export type LayerImageDropData = BaseDropData & {
|
||||
};
|
||||
};
|
||||
|
||||
export type RasterLayerImageDropData = BaseDropData & {
|
||||
actionType: 'ADD_RASTER_LAYER_IMAGE';
|
||||
context: {
|
||||
layerId: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type CanvasInitialImageDropData = BaseDropData & {
|
||||
actionType: 'SET_CANVAS_INITIAL_IMAGE';
|
||||
};
|
||||
|
||||
type UpscaleInitialImageDropData = BaseDropData & {
|
||||
actionType: 'SET_UPSCALE_INITIAL_IMAGE';
|
||||
};
|
||||
@@ -104,7 +93,6 @@ export type TypesafeDroppableData =
|
||||
| IPAImageDropData
|
||||
| RGIPAdapterImageDropData
|
||||
| SelectForCompareDropData
|
||||
| RasterLayerImageDropData
|
||||
| UpscaleInitialImageDropData
|
||||
| LayerImageDropData;
|
||||
|
||||
|
||||
@@ -29,8 +29,6 @@ export const isValidDrop = (overData?: TypesafeDroppableData | null, activeData?
|
||||
return payloadType === 'IMAGE_DTO';
|
||||
case 'SELECT_FOR_COMPARE':
|
||||
return payloadType === 'IMAGE_DTO';
|
||||
case 'SET_INITIAL_IMAGE':
|
||||
return payloadType === 'IMAGE_DTO';
|
||||
case 'ADD_TO_BOARD': {
|
||||
// If the board is the same, don't allow the drop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user