Skip to content

Commit 0d7eba3

Browse files
authored
Hosting dashboard: set media and boolean fields as not sortable (#103149)
1 parent fcfefc0 commit 0d7eba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/dashboard/sites/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const DEFAULT_FIELDS = [
5050
id: 'icon.ico',
5151
label: __( 'Media' ),
5252
render: ( { item }: { item: Site } ) => <SiteIcon site={ item } />,
53+
enableSorting: false,
5354
},
5455
{
5556
id: 'subscribers_count',
@@ -72,6 +73,7 @@ const DEFAULT_FIELDS = [
7273
filterBy: {
7374
operators: [ 'is' as Operator ],
7475
},
76+
enableSorting: false,
7577
},
7678
{
7779
id: 'protect',
@@ -86,6 +88,7 @@ const DEFAULT_FIELDS = [
8688
filterBy: {
8789
operators: [ 'is' as Operator ],
8890
},
91+
enableSorting: false,
8992
},
9093
{
9194
id: 'status',
@@ -105,6 +108,7 @@ const DEFAULT_FIELDS = [
105108
operators: [ 'is' as Operator ],
106109
},
107110
render: ( { item }: { item: Site } ) => ( item.is_a8c ? __( 'Yes' ) : __( 'No' ) ),
111+
enableSorting: false,
108112
},
109113
{
110114
id: 'preview',
@@ -137,6 +141,7 @@ const DEFAULT_FIELDS = [
137141
</>
138142
);
139143
},
144+
enableSorting: false,
140145
},
141146
];
142147

0 commit comments

Comments
 (0)