mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
fix empty functions
This commit is contained in:
@@ -112,7 +112,9 @@ export const LoadProblemButton: React.FC<LoadProblemButtonProps> = ({ className,
|
||||
type="text"
|
||||
webkitdirectory=""
|
||||
directory=""
|
||||
onChange={(_e) => {}}
|
||||
onChange={(_e) => {
|
||||
/* Input change handled by onKeyDown */
|
||||
}}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter') {
|
||||
handleSubmit(e as any);
|
||||
|
||||
@@ -71,7 +71,10 @@ export function createAsyncSuspenseValue<T>(getValue: () => Promise<T>) {
|
||||
return;
|
||||
}
|
||||
|
||||
load().catch(() => {});
|
||||
load().catch((error) => {
|
||||
// Errors are already handled by the load method, just swallow them here
|
||||
console.error('Preload error:', error);
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ const replayWsServer = 'wss://dispatch.replay.io';
|
||||
|
||||
export function assert(condition: any, message: string = 'Assertion failed!'): asserts condition {
|
||||
if (!condition) {
|
||||
// eslint-disable-next-line no-debugger
|
||||
debugger;
|
||||
throw new Error(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user