mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-15 13:30:06 +02:00
rename name to customType
This commit is contained in:
@@ -615,10 +615,10 @@ export const updateObject = <T extends Record<string, any>>(
|
||||
|
||||
export const getCustomElementConfig = (
|
||||
customElementConfig: ExcalidrawProps["customElementsConfig"],
|
||||
name: string,
|
||||
customType: string,
|
||||
) => {
|
||||
if (!customElementConfig) {
|
||||
return null;
|
||||
}
|
||||
return customElementConfig.find((config) => config.name === name);
|
||||
return customElementConfig.find((config) => config.customType === customType);
|
||||
};
|
||||
|
Reference in New Issue
Block a user