We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3623145 commit 9786dfcCopy full SHA for 9786dfc
fission/src/ui/panels/configuring/MatchModeConfigPanel.tsx
@@ -231,11 +231,13 @@ const MatchModeConfigPanel: React.FC<PanelPropsImpl> = ({ panelId }) => {
231
return null
232
}
233
234
- // If validation passes, normalize the config with defaults for missing fields
235
- return {
+ // If validation passes, use the default values in any missing fields
+ const normalizedConfig = {
236
...DefaultMatchModeConfigs.fallbackValues(),
237
...configObj,
238
239
+ normalizedConfig.isDefault = false
240
+ return normalizedConfig
241
242
243
const handleFileUpload = async (file: File) => {
0 commit comments