Skip to content

Commit a414987

Browse files
Update packages/toolbar/src/core/ui/Toolbar/context/FlagSdkOverrideProvider.tsx
Co-authored-by: pranjal-jately-ld <pjately@launchdarkly.com>
1 parent 172e3eb commit a414987

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/toolbar/src/core/ui/Toolbar/context/FlagSdkOverrideProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function FlagSdkOverrideProvider({ children, flagOverridePlugin }: FlagSd
114114
// <= v3: changes are passed as the first argument and as a map of flag keys and their changed values.
115115
// >= v4: changes are passed as the second argument (the first argument is the context) and is an array of flag keys
116116
// of changed flags.
117-
const handleChange = (changes: Record<string, { current: any }>, keys: string[]) => {
117+
const handleChange = (changes: Record<string, { current: any }>, keys?: string[]) => {
118118
setFlags((prevFlags) => {
119119
const updatedRawFlags = ldClient.allFlags();
120120
const newFlags = buildFlags(updatedRawFlags, apiFlags);

0 commit comments

Comments
 (0)