feat: preserve the title of preset.

This commit is contained in:
Wentao Lyu 2023-04-04 01:39:40 +08:00
parent 089d99e679
commit 8720f39def
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ import store from '~/store';
// A preset dialog to show readonly preset values.
const EndpointOptionsDialog = ({ open, onOpenChange, preset: _preset, title }) => {
// const [title, setTitle] = useState('My Preset');
const [preset, setPreset] = useState({});
const [preset, setPreset] = useState(_preset);
const [saveAsDialogShow, setSaveAsDialogShow] = useState(false);