mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Fix filter not resetting on bookmarks (#15236)
* fix bug and make code consistent * clean up unnecessary complexity
This commit is contained in:
@@ -396,11 +396,7 @@ export default defineComponent({
|
||||
|
||||
if (field.field in (props.modelValue || {})) {
|
||||
const newEdits = { ...props.modelValue };
|
||||
if (props.initialValues && field.field in props.initialValues) {
|
||||
newEdits[field.field] = props.initialValues[field.field];
|
||||
} else {
|
||||
delete newEdits[field.field];
|
||||
}
|
||||
delete newEdits[field.field];
|
||||
emit('update:modelValue', newEdits);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user