Skip to content

Commit 334fb85

Browse files
committed
remove unused state
1 parent 515372d commit 334fb85

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/sentry/static/sentry/app/utils/projects.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ class Projects extends React.Component {
226226
const {slugs, children} = this.props;
227227

228228
return children({
229-
// May not need to expose this?
230-
initiallyLoaded: this.state.initiallyLoaded,
231-
232229
// We want to make sure that at the minimum, we return a list of objects with only `slug`
233230
// while we load actual project data
234231
projects: this.state.initiallyLoaded

tests/js/spec/utils/projects.spec.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe('utils.projects', function() {
3434
fetching: false,
3535
isIncomplete: null,
3636
hasMore: null,
37-
initiallyLoaded: true,
3837
projects: [
3938
expect.objectContaining({
4039
id: '1',
@@ -56,7 +55,6 @@ describe('utils.projects', function() {
5655
fetching: false,
5756
isIncomplete: null,
5857
hasMore: null,
59-
initiallyLoaded: true,
6058
projects: [
6159
expect.objectContaining({
6260
id: '1',
@@ -97,7 +95,6 @@ describe('utils.projects', function() {
9795
fetching: true,
9896
isIncomplete: null,
9997
hasMore: null,
100-
initiallyLoaded: true,
10198
projects: [
10299
{slug: 'a'},
103100
{slug: 'b'},
@@ -126,7 +123,6 @@ describe('utils.projects', function() {
126123
fetching: false,
127124
isIncomplete: false,
128125
hasMore: null,
129-
initiallyLoaded: true,
130126
projects: [
131127
expect.objectContaining({
132128
id: '100',
@@ -164,7 +160,6 @@ describe('utils.projects', function() {
164160
fetching: true,
165161
isIncomplete: null,
166162
hasMore: null,
167-
initiallyLoaded: true,
168163
projects: [
169164
{slug: 'a'},
170165
{slug: 'b'},
@@ -193,7 +188,6 @@ describe('utils.projects', function() {
193188
fetching: false,
194189
isIncomplete: true,
195190
hasMore: null,
196-
initiallyLoaded: true,
197191
projects: [
198192
expect.objectContaining({
199193
id: '100',
@@ -246,7 +240,6 @@ describe('utils.projects', function() {
246240
expect.objectContaining({
247241
fetching: true,
248242
isIncomplete: null,
249-
initiallyLoaded: false,
250243
hasMore: null,
251244
projects: [],
252245
})
@@ -266,7 +259,6 @@ describe('utils.projects', function() {
266259
expect.objectContaining({
267260
fetching: false,
268261
isIncomplete: null,
269-
initiallyLoaded: true,
270262
hasMore: true,
271263
projects: [
272264
expect.objectContaining({
@@ -294,7 +286,6 @@ describe('utils.projects', function() {
294286
expect.objectContaining({
295287
fetching: true,
296288
isIncomplete: null,
297-
initiallyLoaded: false,
298289
hasMore: null,
299290
projects: [],
300291
})
@@ -335,7 +326,6 @@ describe('utils.projects', function() {
335326
expect.objectContaining({
336327
fetching: false,
337328
isIncomplete: null,
338-
initiallyLoaded: true,
339329
hasMore: false,
340330
projects: [
341331
expect.objectContaining({
@@ -393,7 +383,6 @@ describe('utils.projects', function() {
393383
expect.objectContaining({
394384
fetching: false,
395385
isIncomplete: null,
396-
initiallyLoaded: true,
397386
hasMore: false,
398387
projects: [
399388
expect.objectContaining({

0 commit comments

Comments
 (0)