File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/devtools/components/main-content/object-store-view Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -88,19 +88,17 @@ export default function DeleteObjectsButton(props: {
8888 < UnstyledButton
8989 command = "close"
9090 commandfor = "delete-objects-modal"
91- onClick = { async ( ) => {
92- try {
93- await deleteData ( {
94- requestID : generateRequestID ( ) ,
95- dbName : props . activeStore . dbName ,
96- storeName : props . activeStore . storeName ,
97- keys : validObjectKeys ( ) ,
98- } ) ;
99- } catch ( e ) {
91+ onClick = { ( ) => {
92+ deleteData ( {
93+ requestID : generateRequestID ( ) ,
94+ dbName : props . activeStore . dbName ,
95+ storeName : props . activeStore . storeName ,
96+ keys : validObjectKeys ( ) ,
97+ } ) . catch ( ( e ) => {
10098 const msg =
10199 e instanceof Error ? e . message : DATA_MUTATION_ERROR_MSG ;
102100 setErrorMsg ( msg ) ;
103- }
101+ } ) ;
104102 } }
105103 >
106104 Delete
You can’t perform that action at this time.
0 commit comments