mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
rename name to customType
This commit is contained in:
parent
3d0a1106ff
commit
8706277d14
11 changed files with 22 additions and 22 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue