Skip to content

Commit db4f926

Browse files
committed
Merge branch 'develop' into gh-pages
2 parents 3f05bba + 4704bd6 commit db4f926

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

URS/sample-eparts.db

32 KB
Binary file not shown.

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ function App() {
7070
// 現在の検索条件に基づいて結果を再取得
7171
if (selectedCategoryId) {
7272
setParts(dbManager.getPartsWithInventory(selectedCategoryId));
73-
} else if (keyword && activeTab === 'keyword') {
73+
} else if (activeTab === 'keyword') {
74+
// キーワード検索タブの場合(キーワード未指定の全検索も含む)
7475
setParts(dbManager.getPartsWithInventory(undefined, keyword));
7576
}
7677
// どちらでもない場合は結果をクリアしない(現在の状態を維持)

src/components/PartAddModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const PartAddModal: React.FC<PartAddModalProps> = ({
174174
type="number"
175175
min="0"
176176
step={field.key === 'price_per_unit' ? '0.01' : '1'}
177-
value={formData[field.key as keyof typeof formData] || ''}
177+
value={formData[field.key as keyof typeof formData] ?? ''}
178178
onChange={(e) => handleInputChange(field.key,
179179
field.key === 'price_per_unit'
180180
? parseFloat(e.target.value) || 0

src/components/PartEditModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const PartEditModal: React.FC<PartEditModalProps> = ({
149149
type="number"
150150
min="0"
151151
step={field.key === 'price_per_unit' ? '0.01' : '1'}
152-
value={formData[field.key as keyof PartWithInventory] || ''}
152+
value={formData[field.key as keyof PartWithInventory] ?? ''}
153153
onChange={(e) => handleInputChange(field.key,
154154
field.key === 'price_per_unit'
155155
? parseFloat(e.target.value) || 0

0 commit comments

Comments
 (0)