Skip to content
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

Unable to Choose Format #31

Closed
CryogenicPlanet opened this issue Jun 27, 2020 · 1 comment
Closed

Unable to Choose Format #31

CryogenicPlanet opened this issue Jun 27, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@CryogenicPlanet
Copy link
Member

  • Was unable to choose a format even on production
@CryogenicPlanet CryogenicPlanet added the bug Something isn't working label Jun 27, 2020
@CryogenicPlanet CryogenicPlanet self-assigned this Jun 27, 2020
CryogenicPlanet added a commit that referenced this issue Jun 27, 2020
CryogenicPlanet added a commit that referenced this issue Jun 27, 2020
@CryogenicPlanet
Copy link
Member Author

Solution

export const configSetOption = (type: ConfigOptions, val: any) => {
  const temp: any = {};
  /**
   * Error Caught Here, Expected
   * type ConfigurationType = {
   * format : FormatType,
   * codec: CodecType
   * }
   * Enum has Codec and Format, Mis Matched Case
   */

  temp[ConfigOptions[type].toLowerCase()] = val;
  config.update((state) => Object.assign({}, state, temp));
};

https://github.com/Mozilla-Open-Lab-Etwas/Video-Transcoder/blob/2eea05cb50db211b554c18e3d84c7b3b1d9e6e57/src/store/stores.ts#L64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant