fix(store): fix Cannot read properties of undefined 'global'

This commit is contained in:
JellyBrick
2023-11-28 05:46:49 +09:00
parent 90103d9853
commit ac0b78eefb

View File

@ -88,7 +88,7 @@ const migrations = {
>;
let updated = false;
for (const optionType of ['global', 'local']) {
if (Array.isArray(options[optionType])) {
if (Object.hasOwn(options, optionType) && Array.isArray(options[optionType])) {
const optionsArray = options[optionType] as {
action: string;
shortcut: unknown;