Skip to content

Commit

Permalink
fix(FE): prevent saving view with empty label
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarif5435 committed Nov 15, 2024
1 parent 323da34 commit 152c91a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ function ExplorerOptions({
});

const onSaveHandler = (): void => {
if(newViewName.trim() === '' || !newViewName){
notifications.error({
message: 'Please enter a valid label name to save this view.'
})
return
}
saveNewViewHandler({
compositeQuery,
handlePopOverClose: hideSaveViewModal,
Expand Down

0 comments on commit 152c91a

Please sign in to comment.