Skip to content

Commit 9786dfc

Browse files
committed
fix: prevent custom configs from showing as defaults
1 parent 3623145 commit 9786dfc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fission/src/ui/panels/configuring/MatchModeConfigPanel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,13 @@ const MatchModeConfigPanel: React.FC<PanelPropsImpl> = ({ panelId }) => {
231231
return null
232232
}
233233

234-
// If validation passes, normalize the config with defaults for missing fields
235-
return {
234+
// If validation passes, use the default values in any missing fields
235+
const normalizedConfig = {
236236
...DefaultMatchModeConfigs.fallbackValues(),
237237
...configObj,
238238
}
239+
normalizedConfig.isDefault = false
240+
return normalizedConfig
239241
}
240242

241243
const handleFileUpload = async (file: File) => {

0 commit comments

Comments
 (0)