mirror of https://github.com/zulip/zulip.git
97c46a7375
Sometimes get_color is called with undefined stream ids. This change makes more clear what was already happening, and allows for smoother conversion of other files to typescript, including an upcoming conversion of the drafts module, which can call `get_color` with a draft with undefined stream_id. This keeps the color logic contained in the `get_color` function, which seems cleaner than the alternative of exporting DEFAULT_COLOR to be used wherever sream_id might be undefined. |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |