Skip to content

Commit

Permalink
fix: update local file failed if not renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchardxyz committed Jan 26, 2024
1 parent 239c040 commit 003e643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to the "tswagger" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]

### Fixed

- Update local file failed if not renaming.

## [1.3.0] - 2024-01-20

### Added
Expand Down
3 changes: 2 additions & 1 deletion webview/src/components/TsResultModal/TsResultModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ const TsResultModal: React.FC<TsResultModalProps> = (props) => {
});

const handleSave = useMemoizedFn(async () => {
const { serviceResult, nameMappingList, defNameMappingList } = _this.latestTsResult;
const { serviceResult: _serviceResult, nameMappingList, defNameMappingList } = _this.latestTsResult;
const serviceResult = _serviceResult.length > 0 ? _serviceResult : originalServiceResult;
startSaving();
const result = await saveTypescript(serviceResult, nameMappingList, defNameMappingList);
stopSaving();
Expand Down

0 comments on commit 003e643

Please sign in to comment.