-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove storage browser table rows while loading #6183
base: main
Are you sure you want to change the base?
Conversation
|
const mappedRows = rows.map(({ key, content }) => ({ | ||
key, | ||
content: content.map(({ key, content, type }) => { | ||
switch (type) { | ||
case 'button': { | ||
return { | ||
key, | ||
content: <ButtonDataCell content={content} />, | ||
}; | ||
} | ||
case 'checkbox': { | ||
return { | ||
key, | ||
content: <CheckboxDataCell content={content} />, | ||
}; | ||
} | ||
case 'date': { | ||
return { | ||
key, | ||
content: <DateDataCell content={content} />, | ||
}; | ||
} | ||
case 'number': { | ||
return { | ||
key, | ||
content: <NumberDataCell content={content} />, | ||
}; | ||
} | ||
case 'text': | ||
default: { | ||
return { | ||
key, | ||
content: <TextDataCell content={content} />, | ||
}; | ||
} | ||
} | ||
}), | ||
})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only change is the addition of the ternary, returning an empty array instead when loading. Rows content is not changed
Description of changes
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passes and tests are updated/addeddocs
,e2e
,examples
, or other private packages.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.