Handle metadata key deletion early exit
In case no keys had to be deleted it always returned an empty object which broke the whole metadata migration and resulted in the final metadata to always fall back to the default values
This commit is contained in:
@@ -140,7 +140,7 @@ const applyMetadataDeleteKeysMigration = (
|
||||
const migratedMetadata: Metadata = {};
|
||||
|
||||
if (!migration.deleteKeys) {
|
||||
return migratedMetadata;
|
||||
return { ...meta };
|
||||
}
|
||||
|
||||
const appMetadata = getAppMetadataFrom(meta, undefined, appKeyPrefix);
|
||||
|
||||
Reference in New Issue
Block a user