mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-19 09:31:44 +03:00
Fix chromatic build
This commit is contained in:
parent
53072298bc
commit
d17978777e
@ -27,9 +27,9 @@ const meta: Meta<PageDecoratorArgs> = {
|
||||
|
||||
export default meta;
|
||||
|
||||
const sortedCompanyNames = mockedCompaniesData
|
||||
const sortedCompanyNames = [...mockedCompaniesData]
|
||||
.map(({ name }) => name)
|
||||
.toSorted();
|
||||
.sort((a, b) => a.localeCompare(b));
|
||||
|
||||
export const SortByName: Story = {
|
||||
play: async ({ canvasElement, step }) => {
|
||||
|
@ -28,7 +28,7 @@ const meta: Meta<PageDecoratorArgs> = {
|
||||
export default meta;
|
||||
|
||||
const peopleEmails = mockedPeopleData.map(({ email }) => email);
|
||||
const sortedPeopleEmails = peopleEmails.toSorted();
|
||||
const sortedPeopleEmails = [...peopleEmails].sort((a, b) => a.localeCompare(b));
|
||||
|
||||
export const Email: Story = {
|
||||
play: async ({ canvasElement, step }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user