Skip to content

Commit

Permalink
Fix: removed blank option
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed May 18, 2024
1 parent fcd2948 commit 3769ab1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/hooks/events/workspace-load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const useWorkspaceLoad = (props: ISTKProps) => {
if (props.data) {
store.dispatch(sync(props.data));
} else {
if (!props.options?.blank) {
store.dispatch(initializeElements());
}
store.dispatch(initializeElements());
}
props.events?.onWorkspaceLoad?.();
}, [props.data]);
Expand Down
2 changes: 0 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ export interface ISTKProps {
maxImageSize?: number;
/** Overrides the default input placeholder at the top left corner of the screen */
locationInputPlaceholder?: string;
/** Loads a blank workspace */
blank?: boolean;
};
plugins?: IPlugins;
}

0 comments on commit 3769ab1

Please sign in to comment.