mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Add display name to components so it doesn't show as anonymous (#5616)
This commit is contained in:
parent
720f468f39
commit
43b13d8e3a
4 changed files with 6 additions and 1 deletions
|
@ -244,7 +244,7 @@ export const actionLoadScene = register({
|
|||
}
|
||||
},
|
||||
keyTest: (event) => event[KEYS.CTRL_OR_CMD] && event.key === KEYS.O,
|
||||
PanelComponent: ({ updateData, appState }) => (
|
||||
PanelComponent: ({ updateData }) => (
|
||||
<ToolButton
|
||||
type="button"
|
||||
icon={load}
|
||||
|
|
|
@ -147,6 +147,7 @@ export class ActionManager {
|
|||
) {
|
||||
const action = this.actions[name];
|
||||
const PanelComponent = action.PanelComponent!;
|
||||
PanelComponent.displayName = "PanelComponent";
|
||||
const elements = this.getElementsIncludingDeleted();
|
||||
const appState = this.getAppState();
|
||||
const updateData = (formState?: any) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue